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

Method getMinValidHeight

sqlchain/runtime.go:149–153  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

147}
148
149func (r *runtime) getMinValidHeight() int32 {
150 r.stateMutex.Lock()
151 defer r.stateMutex.Unlock()
152 return r.nextTurn - r.queryTTL
153}
154
155func (r *runtime) queryTimeIsExpired(t time.Time) bool {
156 // Checking query expiration for the pending block, whose height is c.rt.NextHeight:

Callers 4

queryTimeIsExpiredMethod · 0.95
runCurrentTurnMethod · 0.80
syncMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected