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

Method SetLastBillingHeight

sqlchain/chain.go:1183–1187  ·  view source on GitHub ↗

SetLastBillingHeight sets the last billing height of this chain instance.

(h int32)

Source from the content-addressed store, hash-verified

1181
1182// SetLastBillingHeight sets the last billing height of this chain instance.
1183func (c *Chain) SetLastBillingHeight(h int32) {
1184 c.logEntryWithHeadState().WithFields(
1185 log.Fields{"new_height": h}).Debug("set last billing height")
1186 c.rt.setLastBillingHeight(h)
1187}
1188
1189func (c *Chain) logEntry() *log.Entry {
1190 return log.WithFields(log.Fields{

Callers 1

updateBillingMethod · 0.80

Calls 4

logEntryWithHeadStateMethod · 0.95
DebugMethod · 0.80
WithFieldsMethod · 0.80
setLastBillingHeightMethod · 0.80

Tested by

no test coverage detected