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 (lst *LavaVisorStateTracker) GetProtocolVersion(ctx context.Context) (*updaters.ProtocolVersionResponse, error)
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
Click to show internal directories.
Click to hide internal directories.