verwatcher

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Nov 24, 2021 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	ShutDownIfNotUpgraded     bool
	WarningIfNotUpgradedEvery time.Duration
}

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(cfg Config, store *Store) *VerWarcher

func (*VerWarcher) OnNewLog

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

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