# Functions
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
CanonicalTime can be used to stringify time in a canonical way.
Construct a VoteSet from the Commit and validator set.
No description provided by the author
No description provided by the author
No description provided by the author
GenesisDocFromFile reads JSON data from a file and unmarshalls it into a GenesisDoc.
GenesisDocFromJSON unmarshalls JSON data into a GenesisDoc.
No description provided by the author
IsVoteTypeValid returns true if t is a valid vote type.
MakeBlock returns a new block with an empty header, except what can be computed from itself.
No description provided by the author
No description provided by the author
MaxEvidencePerBlock returns the maximum number of evidences allowed in the block and their maximum total size (limited to 1/10th of the maximum block size).
NewBlockMeta returns a new BlockMeta from the block and its blockParts.
NewCommit returns a new Commit with the given blockID and precommits.
No description provided by the author
NewErrEvidenceInvalid returns a new EvidenceInvalid with the given err.
NewErrEvidenceOverflow returns a new EvidenceOverflowError where got > max.
No description provided by the author
No description provided by the author
NewErroringMockPV returns a MockPV that fails on each signing request.
UNSTABLE.
No description provided by the author
NewMockPVWithParams allows one to create a MockPV instance, but with finer grained control over the operation of the mock validator.
UNSTABLE.
Returns an immutable, full PartSet from the data bytes.
Returns an empty PartSet ready to be populated.
No description provided by the author
NewProposal returns a new Proposal.
NewResultFromResponse creates ABCIResult from ResponseDeliverTx.
NewResults creates ABCIResults from the list of ResponseDeliverTx.
No description provided by the author
No description provided by the author
NewValidatorSet initializes a ValidatorSet by copying over the values from `valz`, a list of Validators.
No description provided by the author
Constructs a new VoteSet struct used to accumulate votes for given height/round.
RandValidator returns a randomized validator, useful for testing.
RandValidatorSet returns a randomized validator set, useful for testing.
No description provided by the author
ValidateHash returns an error if the hash is not empty, but its size != tmhash.Size.
ValidateTime does a basic time validation ensuring time does not drift too much: +/- one year.
# Constants
64kB.
ms.
2MB.
100M gas.
MaxBlockPartsCount is the maximum count of block parts.
100MB.
1MB.
MaxChainIDLen is a maximum length of the chain ID.
MaxEvidenceBytes is a maximum size of any evidence (including amino overhead).
No description provided by the author
MaxSignatureSize is a maximum allowed signature size for the Proposal and Vote.
No description provided by the author
MaxVoteBytes is a maximum vote size (including amino overhead).
MaxVotesCount is the maximum votes count.
UNSTABLE PeerStateKey allows to get the *consensus.PeerState from a [github.com/gnolang/gno/tm2/pkg/p2p.Peer].
No description provided by the author
Votes.
No description provided by the author
Proposals.
TimeFormat is used for generating the sigs.
# Variables
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
# Structs
ABCIResult is the deterministic component of a ResponseDeliverTx.
Block defines the atomic unit of a Tendermint blockchain.
BlockID defines the unique ID of a block as its Hash and its PartSetHeader.
BlockMeta contains meta information about a block - namely, it's ID and Header.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Commit contains the evidence that a block was committed by a set of validators.
Data contains the set of transactions included in the block.
DuplicateVoteEvidence contains evidence a validator signed two conflicting votes.
No description provided by the author
light weight event for benchmarking.
All txs fire EventTx.
No description provided by the author
No description provided by the author
EvidenceInvalidError wraps a piece of evidence and the error denoting how or why it is invalid.
EvidenceOverflowError is for when there is too much evidence in a block.
GenesisDoc defines the initial conditions for a tendermint blockchain, in particular its validator set.
GenesisValidator is an initial validator.
Header defines the structure of a Tendermint block header.
No description provided by the author
No description provided by the author
No description provided by the author
UNSTABLE.
UNSTABLE.
MockPV implements PrivValidator without any safety or persistence.
UNSTABLE.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Proposal defines a block proposal for the consensus.
SignedHeader is a header along with the commits that prove it.
TxProof represents a Merkle proof of the presence of a transaction in the Merkle tree.
TxResult contains results of executing the transaction.
Volatile state for each Validator NOTE: The ProposerPriority is not included in Validator.Hash(); make sure to update that method if changes are made here.
ValidatorSet represent a set of *Validator at a given height.
Vote represents a prevote, precommit, or commit vote from validators for consensus.
No description provided by the author
VoteSet helps collect signatures from validators at each height+round for a
predefined vote type.
More human readable JSON of the vote set NOTE: insufficient for unmarshalling from (compressed votes) TODO: make the peerMaj23s nicer to read (eg just the block hash).
# Interfaces
Evidence represents any provable malicious activity by a validator.
PrivValidator defines the functionality of a local Tendermint validator that signs votes and proposals, and never double signs.
Signable is an interface for all signable things.
TMEvent implements events.Event.
Common interface between *consensus.VoteSet and types.Commit.
# Type aliases
ABCIResults wraps the deliver tx results to return a proof.
Address is hex bytes.
CommitSig is a vote included in a Commit.
No description provided by the author
EvidenceList is a list of Evidence.
UNSTABLE XXX: duplicate of p2p.ID to avoid dependence between packages.
No description provided by the author
SignedMsgType is a type of signed message in the consensus.
Tx is an arbitrary byte array.
Txs is a slice of Tx.
Sort validators by address.