finalizedreader

package
v0.35.16-crescendo-pre... Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 26, 2024 License: AGPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL