MCPcopy Create free account
hub / github.com/MiloOweno/kernel-lab / PreCheck

Method PreCheck

data/bookkeeping/block.go:740–814  ·  view source on GitHub ↗

PreCheck checks if the block header bh is a valid successor to the previous block's header, prev.

(prev BlockHeader)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 6

TestMakeBlockUpgradesFunction · 0.80
TestBlockUnsupportedFunction · 0.80
TestTimeFunction · 0.80
TestBonusFunction · 0.80
StartEvaluatorFunction · 0.80

Calls 5

NextBonusFunction · 0.85
Hash512Method · 0.80
applyUpgradeVoteMethod · 0.80
ErrorfMethod · 0.65
HashMethod · 0.45

Tested by 5

TestMakeBlockUpgradesFunction · 0.64
TestBlockUnsupportedFunction · 0.64
TestTimeFunction · 0.64
TestBonusFunction · 0.64