Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Heights ¶
Heights is a protocol events consumer that provides an interface to subscribe to callbacks when chain state reaches a particular height.
func (*Heights) BlockFinalized ¶
BlockFinalized handles block finalized protocol events, triggering height callbacks as needed.
type IdentityDeltas ¶ added in v0.12.0
IdentityDeltas is a protocol events consumer that provides an interface to subscribe to callbacks any time an identity table change (or possible change) is finalized.
TODO(EFM, #6123) add slashing/ejection events here once implemented TODO(EFM, #6123): Consider consolidating this with ProtocolStateIDCache
func NewIdentityDeltas ¶ added in v0.12.0
func NewIdentityDeltas(cb func()) *IdentityDeltas
NewIdentityDeltas returns a new IdentityDeltas events gadget.
func (*IdentityDeltas) EpochCommittedPhaseStarted ¶ added in v0.12.0
func (g *IdentityDeltas) EpochCommittedPhaseStarted(_ uint64, _ *flow.Header)
func (*IdentityDeltas) EpochSetupPhaseStarted ¶ added in v0.12.0
func (g *IdentityDeltas) EpochSetupPhaseStarted(_ uint64, _ *flow.Header)
func (*IdentityDeltas) EpochTransition ¶ added in v0.12.0
func (g *IdentityDeltas) EpochTransition(_ uint64, _ *flow.Header)
type Views ¶ added in v0.20.0
Views is a protocol events consumer that provides an interface to subscribe to callbacks when consensus reaches a particular view. When a callback is registered for a view, it will be invoked when the first block with block.View >= V is finalized. Callbacks for earlier views are executed before callbacks for later views, and callbacks for the same view are executed on a FIFO basis.
func (*Views) BlockFinalized ¶ added in v0.20.0
BlockFinalized handles block finalized protocol events, triggering view callbacks as needed.