Documentation ¶
Overview ¶
Package validation implements the block-validation algorithms from the Chain Protocol spec.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Block ¶
func Block(b *bc.UnsignedBlock, prev *bc.BlockHeader) error
Block validates a block and the transactions within. It does not check the predicate; for that, see ValidateBlockSig.
func BlockOnly ¶
func BlockOnly(b *bc.UnsignedBlock) error
BlockOnly performs those parts of block validation that depend only on the block and not on the previous block header. TODO(eric): consider another name
func BlockPrev ¶
func BlockPrev(b *bc.UnsignedBlock, prev *bc.BlockHeader) error
BlockPrev performs those parts of block validation that require the previous block's header.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.