MCPcopy Index your code
hub / github.com/CovenantSQL/CovenantSQL / newBlockNode

Function newBlockNode

sqlchain/blockindex.go:51–53  ·  view source on GitHub ↗
(height int32, block *types.Block, parent *blockNode)

Source from the content-addressed store, hash-verified

49}
50
51func newBlockNode(height int32, block *types.Block, parent *blockNode) *blockNode {
52 return newBlockNodeEx(height, block.BlockHash(), block, parent)
53}
54
55func (n *blockNode) load() *types.Block {
56 return n.block.Load().(*types.Block)

Callers 6

TestIndexKeyFunction · 0.70
pushBlockMethod · 0.70
TestNewBlockNodeFunction · 0.70
TestInitBlockNodeFunction · 0.70
TestAncestorFunction · 0.70
TestIndexFunction · 0.70

Calls 2

newBlockNodeExFunction · 0.85
BlockHashMethod · 0.45

Tested by 5

TestIndexKeyFunction · 0.56
TestNewBlockNodeFunction · 0.56
TestInitBlockNodeFunction · 0.56
TestAncestorFunction · 0.56
TestIndexFunction · 0.56