MCPcopy Create free account
hub / github.com/CovenantSQL/CovenantSQL / increaseNextHeight

Method increaseNextHeight

blockproducer/chain.go:976–980  ·  view source on GitHub ↗

increaseNextHeight prepares the chain state for the next turn.

()

Source from the content-addressed store, hash-verified

974
975// increaseNextHeight prepares the chain state for the next turn.
976func (c *Chain) increaseNextHeight() {
977 c.Lock()
978 defer c.Unlock()
979 c.nextHeight++
980}
981
982// heightOfTime calculates the heightOfTime with this sql-chain config of a given time reading.
983func (c *Chain) heightOfTime(t time.Time) uint32 {

Callers 2

advanceNextHeightMethod · 0.95
syncHeadsMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected