package
0.0.0-20220616152218-3da4c06c590a
Repository: https://github.com/astra-net/astra-network.git
Documentation: pkg.go.dev
# Variables
ErrFutureBlock is returned when a block's timestamp is in the future according to the current node.
ErrInvalidConsensusMessage is returned is the consensus message received is invalid.
ErrInvalidNumber is returned if a block's number doesn't equal it's parent's plus one.
ErrPrunedAncestor is returned when validating a block requires an ancestor that is known, but the state of which is not available.
ErrUnknownAncestor is returned when validating a block requires an ancestor that is unknown.
ErrViewIDNotMatch is returned if the current viewID is not equal message's viewID.
# Interfaces
ChainReader defines a collection of methods needed to access the local blockchain during header and/or uncle verification.
Engine is an algorithm agnostic consensus engine.