github.com/koko1123/flow-go-1@v0.29.6/engine/consensus/approvals/tracker/noop.go (about) 1 package tracker 2 3 import ( 4 "github.com/koko1123/flow-go-1/engine/consensus" 5 "github.com/koko1123/flow-go-1/model/flow" 6 ) 7 8 // NoopSealingTracker implements the sealing.SealingTracker and sealing.SealingObservation interfaces. 9 // By using the same instance, we avoid GC overhead. All methods are essentially NoOps. 10 type NoopSealingTracker struct{} 11 12 func (t *NoopSealingTracker) NewSealingObservation(*flow.Header, *flow.Seal, *flow.Header) consensus.SealingObservation { 13 return t 14 } 15 16 func (t *NoopSealingTracker) QualifiesForEmergencySealing(*flow.IncorporatedResult, bool) {} 17 func (t *NoopSealingTracker) ApprovalsRequested(*flow.IncorporatedResult, uint) {} 18 func (t *NoopSealingTracker) Complete() {} 19 func (t *NoopSealingTracker) ApprovalsMissing(*flow.IncorporatedResult, map[uint64]flow.IdentifierList) { 20 }