finalizedreader

package
v0.37.0-crescendo-RC6-... Latest Latest
Warning

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

Go to latest
Published: Aug 10, 2024 License: AGPL-3.0 Imports: 6 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 {
	events.Noop // all unimplemented event consumers are no-ops
	// 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) FinalizedBlockIDAtHeight

func (r *FinalizedReader) FinalizedBlockIDAtHeight(height uint64) (flow.Identifier, error)

FinalizedBlockIDAtHeight returns the block ID of the finalized block at the given height. It returns 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