Documentation ¶
Overview ¶
Package validate provides context-free consensus validation.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DCP0005MerkleRoot ¶
func DCP0005MerkleRoot(block *wire.MsgBlock) error
DCP0005MerkleRoot recreates the combined regular and stake transaction merkle root and compares it against the merkle root in the block header.
DCP0005 (https://github.com/decred/dcps/blob/master/dcp-0005/dcp-0005.mediawiki) describes (among other changes) the hard forking change which combined the individual regular and stake merkle roots into a single root.
func MerkleRoots ¶
func MerkleRoots(block *wire.MsgBlock) error
MerkleRoots recreates the merkle roots of regular and stake transactions from a block and compares them against the recorded merkle roots in the block header.
func RegularCFilter ¶
func RegularCFilter(block *wire.MsgBlock, filter *gcs.Filter) error
RegularCFilter verifies a regular committed filter received over wire protocol matches the block. Currently (without cfilter header commitments) this is performed by reconstructing the filter from the block and comparing equality.
Types ¶
This section is empty.