Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/CovenantSQL/CovenantSQL
/ getHead
Method
getHead
sqlchain/runtime.go:337–341 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
335
}
336
337
func
(r *runtime) getHead() *state {
338
r.stateMutex.Lock()
339
defer
r.stateMutex.Unlock()
340
return
r.head
341
}
342
343
func
(r *runtime) setHead(head *state) {
344
r.stateMutex.Lock()
Callers
13
TestMultiChain
Function · 0.45
pushBlock
Method · 0.45
produceBlock
Method · 0.45
syncHead
Method · 0.45
runCurrentTurn
Method · 0.45
processBlocks
Method · 0.45
FetchBlock
Method · 0.45
FetchBlockByCount
Method · 0.45
CheckAndPushNewBlock
Method · 0.45
pruneBlockCache
Method · 0.45
logEntryWithHeadState
Method · 0.45
updateMetrics
Method · 0.45
Calls
no outgoing calls
Tested by
1
TestMultiChain
Function · 0.36