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

Method logEntryWithHeadState

sqlchain/chain.go:1197–1206  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1195}
1196
1197func (c *Chain) logEntryWithHeadState() *log.Entry {
1198 return log.WithFields(log.Fields{
1199 "db": c.databaseID,
1200 "peer": c.rt.getPeerInfoString(),
1201 "offset": c.rt.getChainTimeString(),
1202 "curr_turn": c.rt.getNextTurn(),
1203 "head_height": c.rt.getHead().Height,
1204 "head_block": c.rt.getHead().Head.String(),
1205 })
1206}
1207
1208func (c *Chain) updateMetrics() {
1209 head := c.rt.getHead()

Callers 8

produceBlockMethod · 0.95
syncHeadMethod · 0.95
runCurrentTurnMethod · 0.95
processBlocksMethod · 0.95
StartMethod · 0.95
CheckAndPushNewBlockMethod · 0.95
billingMethod · 0.95
SetLastBillingHeightMethod · 0.95

Calls 6

WithFieldsFunction · 0.92
getPeerInfoStringMethod · 0.80
getChainTimeStringMethod · 0.80
getNextTurnMethod · 0.80
getHeadMethod · 0.45
StringMethod · 0.45

Tested by

no test coverage detected