github.com/onflow/flow-go@v0.35.7-crescendo-preview.23-atree-inlining/state/protocol/events/noop.go (about) 1 package events 2 3 import ( 4 "github.com/onflow/flow-go/model/flow" 5 "github.com/onflow/flow-go/state/protocol" 6 ) 7 8 // Noop is a no-op implementation of protocol.Consumer. 9 type Noop struct{} 10 11 var _ protocol.Consumer = (*Noop)(nil) 12 13 func NewNoop() *Noop { 14 return &Noop{} 15 } 16 17 func (n Noop) BlockFinalized(*flow.Header) {} 18 19 func (n Noop) BlockProcessable(*flow.Header, *flow.QuorumCertificate) {} 20 21 func (n Noop) EpochTransition(uint64, *flow.Header) {} 22 23 func (n Noop) EpochSetupPhaseStarted(uint64, *flow.Header) {} 24 25 func (n Noop) EpochCommittedPhaseStarted(uint64, *flow.Header) {} 26 27 func (n Noop) EpochEmergencyFallbackTriggered() {} 28 29 func (n Noop) ActiveClustersChanged(flow.ChainIDList) {}