validation

package
v0.0.2 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

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 TheBlockChainFingerprintMatchGenesisBlock

func TheBlockChainFingerprintMatchGenesisBlock(block *p2p_pb.BcBlock) bool

Types

This section is empty.

Jump to

Keyboard shortcuts

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