# Functions
No description provided by the author
BytesToBloom converts a byte slice to a bloom filter.
No description provided by the author
No description provided by the author
CreateTestBlock creates a block for testing.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
NewBlock creates a new Block.
No description provided by the author
No description provided by the author
NewGuardianCandidatePool creates a new instance of GuardianCandidatePool.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
NewValidator creates a new validator instance.
NewValidatorSet returns a new instance of ValidatorSet.
NewVoteSet creates an instance of VoteSet.
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
# Constants
Block status transitions:
+-------+ +-------+ +-------------------+
|Pending+---+------>Invalid| +----->IndirectlyFinalized|
+-------+ | +-------+ | +-------------------+
| |
| +-----+ +---------+ | +-----------------+
+------>Valid+-------->Committed+---+----->DirectlyFinalized|
+-----+ +---------+ +-----------------+
*/.
Block status transitions:
+-------+ +-------+ +-------------------+
|Pending+---+------>Invalid| +----->IndirectlyFinalized|
+-------+ | +-------+ | +-------------------+
| |
| +-----+ +---------+ | +-----------------+
+------>Valid+-------->Committed+---+----->DirectlyFinalized|
+-----+ +---------+ +-----------------+
*/.
Block status transitions:
+-------+ +-------+ +-------------------+
|Pending+---+------>Invalid| +----->IndirectlyFinalized|
+-------+ | +-------+ | +-------------------+
| |
| +-----+ +---------+ | +-----------------+
+------>Valid+-------->Committed+---+----->DirectlyFinalized|
+-----+ +---------+ +-----------------+
*/.
Block status transitions:
+-------+ +-------+ +-------------------+
|Pending+---+------>Invalid| +----->IndirectlyFinalized|
+-------+ | +-------+ | +-------------------+
| |
| +-----+ +---------+ | +-----------------+
+------>Valid+-------->Committed+---+----->DirectlyFinalized|
+-----+ +---------+ +-----------------+
*/.
Block status transitions:
+-------+ +-------+ +-------------------+
|Pending+---+------>Invalid| +----->IndirectlyFinalized|
+-------+ | +-------+ | +-------------------+
| |
| +-----+ +---------+ | +-----------------+
+------>Valid+-------->Committed+---+----->DirectlyFinalized|
+-----+ +---------+ +-----------------+
*/.
Block status transitions:
+-------+ +-------+ +-------------------+
|Pending+---+------>Invalid| +----->IndirectlyFinalized|
+-------+ | +-------+ | +-------------------+
| |
| +-----+ +---------+ | +-----------------+
+------>Valid+-------->Committed+---+----->DirectlyFinalized|
+-----+ +---------+ +-----------------+
*/.
Block status transitions:
+-------+ +-------+ +-------------------+
|Pending+---+------>Invalid| +----->IndirectlyFinalized|
+-------+ | +-------+ | +-------------------+
| |
| +-----+ +---------+ | +-----------------+
+------>Valid+-------->Committed+---+----->DirectlyFinalized|
+-----+ +---------+ +-----------------+
*/.
Block status transitions:
+-------+ +-------+ +-------------------+
|Pending+---+------>Invalid| +----->IndirectlyFinalized|
+-------+ | +-------+ | +-------------------+
| |
| +-----+ +---------+ | +-----------------+
+------>Valid+-------->Committed+---+----->DirectlyFinalized|
+-----+ +---------+ +-----------------+
*/.
No description provided by the author
BloomBitLength represents the number of bits used in a header log bloom.
BloomByteLength represents the number of bytes used in a header log bloom.
No description provided by the author
No description provided by the author
No description provided by the author
max uint64.
No description provided by the author
No description provided by the author
MaxNumRegularTxsPerBlock represents the max number of regular transaction can be inclulded in one block.
number of blocks, approximately 2 days with 6 second block time.
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
# Variables
No description provided by the author
No description provided by the author
No description provided by the author
ErrValidatorNotFound for ID is not found in validator set.
HardcodeBlockHashes maps block heights to hardcode block hashes.
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
AggregatedEENVotes represents the aggregated elite edge node votes on a block.
AggregatedVotes represents votes on a block.
No description provided by the author
Block represents a block in chain.
BlockHeader contains the essential information of a block.
CommitCertificate represents a commit made a majority of validators.
No description provided by the author
EENVote represents the vote for a block from an elite edge node.
No description provided by the author
ExtendedBlock is wrapper over Block, containing extra information related to the block.
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 represents a proposal of a new block.
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
TODO: Should rename StakeHolder to StakeDelegate.
No description provided by the author
TxInfo encapsulates information used by mempool to sorting.
Validator contains the public information of a validator.
No description provided by the author
ValidatorSet represents a set of validators.
No description provided by the author
Vote represents a vote on a block by a validaor.
VoteSet represents a set of votes on a proposal.
# Interfaces
ConsensusEngine is the interface of a consensus engine.
No description provided by the author
Ledger defines the interface of the ledger
.
ValidatorManager is the component for managing validator related logic for consensus engine.
# Type aliases
No description provided by the author
Bloom represents a 2048 bit bloom filter.
ByID implements sort.Interface for ValidatorSet based on ID.
No description provided by the author
No description provided by the author
VoteByID implements sort.Interface for []Vote based on Voter's ID.