state

package
v1.1.7-ts Latest Latest
Warning

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

Go to latest
Published: Jun 30, 2020 License: MIT Imports: 19 Imported by: 8 modules, 27 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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