Documentation
¶
Index ¶
- func GetNewIndexedHeightChange(low, high *p2p_pb.BcBlock) int64
- func GetNewestIndexedBlockHeader(block *p2p_pb.BcBlock) *p2p_pb.BlockchainHeader
- func HeaderRangeIsContiguous(low, high []*p2p_pb.BlockchainHeader) bool
- func IfMoreThanOneHeaderPerBlockchainAreTheyOrdered(block *p2p_pb.BcBlock) bool
- func IsChainRootCorrectlyCalculated(block *p2p_pb.BcBlock) bool
- func IsDistanceAboveDifficulty(block *p2p_pb.BcBlock) bool
- func IsDistanceCorrectlyCalculated(block *p2p_pb.BcBlock) bool
- func IsFieldLengthBounded(block *p2p_pb.BcBlock) bool
- func IsMerkleRootCorrectlyCalculated(block *p2p_pb.BcBlock) bool
- func IsValidBlock(block *p2p_pb.BcBlock) (bool, error)
- func IsValidBlockTime(block *p2p_pb.BcBlock) bool
- func NumberOfBlockchainsNeededMatchesChildBlock(block *p2p_pb.BcBlock) bool
- func OrderedBlockPairIsValid(low, high *p2p_pb.BcBlock) bool
- func OrderedBlockPairIsValidStrict(low, high *p2p_pb.BcBlock) bool
- func TheBlockChainFingerprintMatchGenesisBlock(block *p2p_pb.BcBlock) bool
- func ValidateBlockRange(startingBlock *p2p_pb.BcBlock, blocks []*p2p_pb.BcBlock) (bool, int)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetNewIndexedHeightChange ¶ added in v0.0.7
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 IsFieldLengthBounded ¶
func IsValidBlockTime ¶
func OrderedBlockPairIsValid ¶ added in v0.0.4
func OrderedBlockPairIsValidStrict ¶ added in v0.0.7
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.