Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrInvalidBlockHash = errors.New("invalid block hash")
ErrInvalidBlockHash hashed set of block header fields is not equal to block.header.hash.
View Source
var ErrPrevBlockHash = errors.New("previous block hash does not equal the previous hash in the current block")
ErrPrevBlockHash previous block hash does not equal the previous hash in the current block.
Functions ¶
func CheckBlockCertificate ¶
CheckBlockCertificate ensures that the block certificate is valid.
func CheckBlockHeader ¶
CheckBlockHeader checks whether a block header is malformed. These are stateless and stateful checks. Returns nil, if all checks pass.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.