validation

package
v0.0.7 Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2022 License: BSD-3-Clause Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetNewIndexedHeightChange added in v0.0.7

func GetNewIndexedHeightChange(low, high *p2p_pb.BcBlock) int64

func GetNewestIndexedBlockHeader added in v0.0.7

func GetNewestIndexedBlockHeader(block *p2p_pb.BcBlock) *p2p_pb.BlockchainHeader

func HeaderRangeIsContiguous added in v0.0.5

func HeaderRangeIsContiguous(low, high []*p2p_pb.BlockchainHeader) bool

func IfMoreThanOneHeaderPerBlockchainAreTheyOrdered

func IfMoreThanOneHeaderPerBlockchainAreTheyOrdered(block *p2p_pb.BcBlock) bool

func IsChainRootCorrectlyCalculated

func IsChainRootCorrectlyCalculated(block *p2p_pb.BcBlock) bool

func IsDistanceAboveDifficulty

func IsDistanceAboveDifficulty(block *p2p_pb.BcBlock) bool

func IsDistanceCorrectlyCalculated

func IsDistanceCorrectlyCalculated(block *p2p_pb.BcBlock) bool

func IsFieldLengthBounded

func IsFieldLengthBounded(block *p2p_pb.BcBlock) bool

func IsMerkleRootCorrectlyCalculated

func IsMerkleRootCorrectlyCalculated(block *p2p_pb.BcBlock) bool

func IsValidBlock

func IsValidBlock(block *p2p_pb.BcBlock) (bool, error)

func IsValidBlockTime

func IsValidBlockTime(block *p2p_pb.BcBlock) bool

func NumberOfBlockchainsNeededMatchesChildBlock

func NumberOfBlockchainsNeededMatchesChildBlock(block *p2p_pb.BcBlock) bool

func OrderedBlockPairIsValid added in v0.0.4

func OrderedBlockPairIsValid(low, high *p2p_pb.BcBlock) bool

func OrderedBlockPairIsValidStrict added in v0.0.7

func OrderedBlockPairIsValidStrict(low, high *p2p_pb.BcBlock) bool

func TheBlockChainFingerprintMatchGenesisBlock

func TheBlockChainFingerprintMatchGenesisBlock(block *p2p_pb.BcBlock) bool

func ValidateBlockRange added in v0.0.4

func ValidateBlockRange(startingBlock *p2p_pb.BcBlock, blocks []*p2p_pb.BcBlock) (bool, int)

Types

This section is empty.

Jump to

Keyboard shortcuts

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