validate

package module
v1.1.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 22, 2019 License: ISC Imports: 6 Imported by: 9

Documentation

Overview

Package validate provides context-free consensus validation.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DCP0005MerkleRoot added in v1.1.1

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL