MCPcopy Create free account
hub / github.com/CovenantSQL/CovenantSQL / clear

Method clear

blockproducer/blocknode.go:67–69  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

65}
66
67func (n *blockNode) clear() {
68 n.block.Store((*types.BPBlock)(nil))
69}
70
71// fetchNodeList returns the block node list within range [from, n.count] from node head n.
72func (n *blockNode) fetchNodeList(from uint32) (bl []*blockNode) {

Callers 3

TestChainFunction · 0.45
newNonCacheBlockNodeFunction · 0.45
NewChainWithContextFunction · 0.45

Calls

no outgoing calls

Tested by 1

TestChainFunction · 0.36