verwatcher

package
v0.0.0-...-985cc99 Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Store

type Store struct {
	logger.Instance
	// contains filtered or unexported fields
}

Store is a node persistent storage working over physical key-value database.

func NewStore

func NewStore(mainDB kvdb.Store) *Store

NewStore creates store over key-value db.

func (*Store) GetMissedVersion

func (s *Store) GetMissedVersion() uint64

GetMissedVersion returns stored non-supported network upgrade.

func (*Store) GetNetworkVersion

func (s *Store) GetNetworkVersion() uint64

GetNetworkVersion returns stored network version.

func (*Store) SetMissedVersion

func (s *Store) SetMissedVersion(v uint64)

SetMissedVersion stores non-supported network upgrade.

func (*Store) SetNetworkVersion

func (s *Store) SetNetworkVersion(v uint64)

SetNetworkVersion stores network version.

type VerWarcher

type VerWarcher struct {
	logger.Instance
	// contains filtered or unexported fields
}

func New

func New(store *Store) *VerWarcher

func (*VerWarcher) OnNewLog

func (w *VerWarcher) OnNewLog(l *types.Log)

func (*VerWarcher) Pause

func (w *VerWarcher) Pause() error

func (*VerWarcher) Start

func (w *VerWarcher) Start()

func (*VerWarcher) Stop

func (w *VerWarcher) Stop()

Jump to

Keyboard shortcuts

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