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

Method lookupNode

sqlchain/blockindex.go:129–134  ·  view source on GitHub ↗
(hash *hash.Hash)

Source from the content-addressed store, hash-verified

127}
128
129func (i *blockIndex) lookupNode(hash *hash.Hash) (b *blockNode) {
130 i.mu.RLock()
131 defer i.mu.RUnlock()
132 b = i.index[*hash]
133 return
134}

Callers 4

NewChainWithContextFunction · 0.80
produceBlockMethod · 0.80
TestAncestorFunction · 0.80
TestIndexFunction · 0.80

Calls

no outgoing calls

Tested by 2

TestAncestorFunction · 0.64
TestIndexFunction · 0.64