Documentation ¶
Index ¶
- type FinalizedReader
- func (r *FinalizedReader) BlockFinalized(h *flow.Header)
- func (r *FinalizedReader) BlockProcessable(h *flow.Header, qc *flow.QuorumCertificate)
- func (r *FinalizedReader) EpochCommittedPhaseStarted(currentEpochCounter uint64, first *flow.Header)
- func (r *FinalizedReader) EpochEmergencyFallbackTriggered()
- func (r *FinalizedReader) EpochSetupPhaseStarted(currentEpochCounter uint64, first *flow.Header)
- func (r *FinalizedReader) EpochTransition(newEpochCounter uint64, first *flow.Header)
- func (r *FinalizedReader) FinalizedBlockIDAtHeight(height uint64) (flow.Identifier, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FinalizedReader ¶
type FinalizedReader struct {
// contains filtered or unexported fields
}
func NewFinalizedReader ¶
func NewFinalizedReader(headers storage.Headers, lastHeight uint64) *FinalizedReader
func (*FinalizedReader) BlockFinalized ¶
func (r *FinalizedReader) BlockFinalized(h *flow.Header)
BlockFinalized implements the protocol.Consumer interface, which allows FinalizedReader to consume finalized blocks from the protocol
func (*FinalizedReader) BlockProcessable ¶
func (r *FinalizedReader) BlockProcessable(h *flow.Header, qc *flow.QuorumCertificate)
func (*FinalizedReader) EpochCommittedPhaseStarted ¶
func (r *FinalizedReader) EpochCommittedPhaseStarted(currentEpochCounter uint64, first *flow.Header)
func (*FinalizedReader) EpochEmergencyFallbackTriggered ¶
func (r *FinalizedReader) EpochEmergencyFallbackTriggered()
func (*FinalizedReader) EpochSetupPhaseStarted ¶
func (r *FinalizedReader) EpochSetupPhaseStarted(currentEpochCounter uint64, first *flow.Header)
func (*FinalizedReader) EpochTransition ¶
func (r *FinalizedReader) EpochTransition(newEpochCounter uint64, first *flow.Header)
func (*FinalizedReader) FinalizedBlockIDAtHeight ¶
func (r *FinalizedReader) FinalizedBlockIDAtHeight(height uint64) (flow.Identifier, error)
FinalizedBlockIDAtHeight returns the block ID of the finalized block at the given height. It return storage.NotFound if the given height has not been finalized yet any other error returned are exceptions
Click to show internal directories.
Click to hide internal directories.