Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
110
func
newBlockIndex() (index *blockIndex) {
111
return
&blockIndex{
112
index: make(
map
[hash.Hash]*blockNode),
113
}
114
}
115
116
func
(i *blockIndex) addBlock(newBlock *blockNode) {
117
i.mu.Lock()
Callers
3
NewChainWithContext
Function · 0.85
TestAncestor
Function · 0.85
TestIndex
Function · 0.85
Calls
no outgoing calls
Tested by
2
TestAncestor
Function · 0.68
TestIndex
Function · 0.68