package
2.3.3-beta1+incompatible
Repository: https://github.com/xinfinorg/xdposchain.git
Documentation: pkg.go.dev

# Functions

compare 2 signers lists return true if they are same elements, otherwise return false.
Decode extra fields for consensus version >= 2 (XDPoS 2.0 and future versions).
Extract validators from byte array.
No description provided by the author
No description provided by the author
No description provided by the author

# Constants

No description provided by the author
Number of recent vote snapshots to keep in memory.
No description provided by the author
No description provided by the author
No description provided by the author

# Variables

Default number of blocks after which to checkpoint and reset the pending votes.
Various error messages to mark blocks invalid.
Various error messages to mark blocks invalid.
Various error messages to mark blocks invalid.
Various error messages to mark blocks invalid.
errExtraSigners is returned if non-checkpoint block contain signer data in their extra-data fields.
Various error messages to mark blocks invalid.
errInvalidCheckpointBeneficiary is returned if a checkpoint/epoch transition block has a beneficiary set to non-zeroes.
Various error messages to mark blocks invalid.
errInvalidCheckpointSigners is returned if a checkpoint block contains an invalid list of signers (i.e.
Various error messages to mark blocks invalid.
errInvalidCheckpointVote is returned if a checkpoint/epoch transition block has a vote nonce set to non-zeroes.
Various error messages to mark blocks invalid.
errInvalidDifficulty is returned if the difficulty of a block is not either of 1 or 2, or if the value does not match the turn of the signer.
Various error messages to mark blocks invalid.
Various error messages to mark blocks invalid.
errInvalidMixDigest is returned if a block's mix digest is non-zero.
Various error messages to mark blocks invalid.
Various error messages to mark blocks invalid.
Various error messages to mark blocks invalid.
Various error messages to mark blocks invalid.
ErrInvalidTimestamp is returned if the timestamp of a block is lower than the previous block's timestamp + the minimum block period.
errInvalidUncleHash is returned if a block contains an non-empty uncle list.
Various error messages to mark blocks invalid.
errInvalidVote is returned if a nonce value is something else that the two allowed constants of 0x00..0 or 0xff..f.
errInvalidVotingChain is returned if an authorization list is attempted to be modified via out-of-range or non-contiguous headers.
errMissingSignature is returned if a block's extra-data section doesn't seem to contain a 65 byte secp256k1 signature.
errMissingVanity is returned if a block's extra-data section is shorter than 32 bytes, which is required to store the signer vanity.
Various error messages to mark blocks invalid.
Various error messages to mark blocks invalid.
Various error messages to mark blocks invalid.
errUnauthorized is returned if a header is signed by a non-authorized entity.
errUnknownBlock is returned when the list of signers is requested for a block that is not part of the local blockchain.
Various error messages to mark blocks invalid.
Various error messages to mark blocks invalid.
errWaitTransactions is returned if an empty block is attempted to be sealed on an instant chain (0 second period).
Fixed number of extra-data suffix bytes reserved for signer seal.
Fixed number of extra-data prefix bytes reserved for signer vanity.
Number of mapping from block to epoch switch infos to keep in memory.
Magic nonce number to vote on adding a new signer.
Magic nonce number to vote on removing a signer.
Always Keccak256(RLP([])) as uncles are meaningless outside of PoW.

# Structs

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

# Interfaces

No description provided by the author
No description provided by the author
No description provided by the author