state

package
v1.1.0-rc3 Latest Latest
Warning

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

Go to latest
Published: Mar 2, 2020 License: MIT Imports: 18 Imported by: 22

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type State added in v1.1.0

type State struct {
	App         *app.App
	Validators  *validators.Validators
	Candidates  *candidates.Candidates
	FrozenFunds *frozenfunds.FrozenFunds
	Accounts    *accounts.Accounts
	Coins       *coins.Coins
	Checks      *checks.Checks
	Checker     *checker.Checker
	// contains filtered or unexported fields
}

func NewCheckState added in v1.1.0

func NewCheckState(state *State) *State

func NewCheckStateAtHeight added in v1.1.0

func NewCheckStateAtHeight(height uint64, db db.DB) (*State, error)

func NewState added in v1.1.0

func NewState(height uint64, db db.DB, events eventsdb.IEventsDB, keepLastStates int64, cacheSize int) (*State, error)

func (*State) Check added in v1.1.0

func (s *State) Check() error

func (*State) Commit added in v1.1.0

func (s *State) Commit() ([]byte, error)

func (*State) Export added in v1.1.0

func (s *State) Export(height uint64) types.AppState

func (*State) Import added in v1.1.0

func (s *State) Import(state types.AppState) error

func (*State) Lock added in v1.1.0

func (s *State) Lock()

func (*State) RLock added in v1.1.0

func (s *State) RLock()

func (*State) RUnlock added in v1.1.0

func (s *State) RUnlock()

func (*State) Unlock added in v1.1.0

func (s *State) Unlock()

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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