github.com/koko1123/flow-go-1@v0.29.6/state/protocol/events/noop.go (about)

     1  package events
     2  
     3  import (
     4  	"github.com/koko1123/flow-go-1/model/flow"
     5  	"github.com/koko1123/flow-go-1/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(block *flow.Header) {
    18  }
    19  
    20  func (n Noop) BlockProcessable(block *flow.Header) {
    21  }
    22  
    23  func (n Noop) EpochTransition(newEpoch uint64, first *flow.Header) {
    24  }
    25  
    26  func (n Noop) EpochSetupPhaseStarted(epoch uint64, first *flow.Header) {
    27  }
    28  
    29  func (n Noop) EpochCommittedPhaseStarted(epoch uint64, first *flow.Header) {
    30  }