github.com/onflow/flow-go@v0.35.7-crescendo-preview.23-atree-inlining/engine/consensus/approvals/tracker/noop.go (about) 1 package tracker 2 3 import ( 4 "github.com/onflow/flow-go/engine/consensus" 5 "github.com/onflow/flow-go/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 }