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

Function newBlockIndex

sqlchain/blockindex.go:110–114  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

108}
109
110func newBlockIndex() (index *blockIndex) {
111 return &blockIndex{
112 index: make(map[hash.Hash]*blockNode),
113 }
114}
115
116func (i *blockIndex) addBlock(newBlock *blockNode) {
117 i.mu.Lock()

Callers 3

NewChainWithContextFunction · 0.85
TestAncestorFunction · 0.85
TestIndexFunction · 0.85

Calls

no outgoing calls

Tested by 2

TestAncestorFunction · 0.68
TestIndexFunction · 0.68