lvstatetracker

package
v2.5.3 Latest Latest
Warning

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

Go to latest
Published: Aug 26, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LavaVisorStateTracker

type LavaVisorStateTracker struct {
	// contains filtered or unexported fields
}

Lava visor doesn't require complicated state tracker, it just needs to periodically fetch the protocol version.

func NewLavaVisorStateTracker

func NewLavaVisorStateTracker(ctx context.Context, txFactory tx.Factory, clientCtx client.Context, chainFetcher chaintracker.ChainFetcher) (lvst *LavaVisorStateTracker, err error)

func (*LavaVisorStateTracker) GetProtocolVersion

func (*LavaVisorStateTracker) RegisterForVersionUpdates

func (lst *LavaVisorStateTracker) RegisterForVersionUpdates(ctx context.Context, version *protocoltypes.Version, versionValidator updaters.VersionValidationInf)

type LavaVisorVersionUpdater

type LavaVisorVersionUpdater struct {
	updaters.VersionUpdater
}

func (*LavaVisorVersionUpdater) Update

func (vu *LavaVisorVersionUpdater) Update()

monitor protocol version on each new block, this method overloads the update method of version updater in protocol because here we fetch the protocol version every block instead of listening to events which is not necessary in lava visor

Jump to

Keyboard shortcuts

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