MCPcopy Create free account
hub / github.com/DeAI-Artist/Linkis / IsZero

Method IsZero

types/block.go:1199–1202  ·  view source on GitHub ↗

IsZero returns true if this is the BlockID of a nil block.

()

Source from the content-addressed store, hash-verified

1197
1198// IsZero returns true if this is the BlockID of a nil block.
1199func (blockID BlockID) IsZero() bool {
1200 return len(blockID.Hash) == 0 &&
1201 blockID.PartSetHeader.IsZero()
1202}
1203
1204// IsComplete returns true if this is a valid BlockID of a non-nil block.
1205func (blockID BlockID) IsComplete() bool {

Callers 15

CanonicalizeBlockIDFunction · 0.45
CommitSigMethod · 0.45
ValidateBasicMethod · 0.45
TestVoteSet_AddVote_GoodFunction · 0.45
TestVoteSet_2_3MajorityFunction · 0.45
TestHeaderHashFunction · 0.45
ValidateAndCompleteMethod · 0.45
ValidateBasicMethod · 0.45
ValidateBasicMethod · 0.45
isBadMethod · 0.45
updateToStateMethod · 0.45

Calls

no outgoing calls

Tested by 4

TestVoteSet_AddVote_GoodFunction · 0.36
TestVoteSet_2_3MajorityFunction · 0.36
TestHeaderHashFunction · 0.36