state

package
v1.1.8-pre-alpha.1 Latest Latest
Warning

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

Go to latest
Published: Jun 16, 2020 License: MIT Imports: 19 Imported by: 22

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CheckState added in v1.2.0

type CheckState struct {
	// contains filtered or unexported fields
}

func NewCheckState added in v1.1.0

func NewCheckState(state *State) *CheckState

func NewCheckStateAtHeight added in v1.1.0

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

func (*CheckState) Accounts added in v1.2.0

func (cs *CheckState) Accounts() accounts.RAccounts

func (*CheckState) App added in v1.2.0

func (cs *CheckState) App() app.RApp

func (*CheckState) Candidates added in v1.2.0

func (cs *CheckState) Candidates() candidates.RCandidates

func (*CheckState) Checks added in v1.2.0

func (cs *CheckState) Checks() checks.RChecks

func (*CheckState) Coins added in v1.2.0

func (cs *CheckState) Coins() coins.RCoins

func (*CheckState) FrozenFunds added in v1.2.0

func (cs *CheckState) FrozenFunds() frozenfunds.RFrozenFunds

func (*CheckState) Lock added in v1.2.0

func (cs *CheckState) Lock()

func (*CheckState) RLock added in v1.2.0

func (cs *CheckState) RLock()

func (*CheckState) RUnlock added in v1.2.0

func (cs *CheckState) RUnlock()

func (*CheckState) Tree added in v1.2.0

func (cs *CheckState) Tree() tree.ReadOnlyTree

func (*CheckState) Unlock added in v1.2.0

func (cs *CheckState) Unlock()

func (*CheckState) Validators added in v1.2.0

func (cs *CheckState) Validators() validators.RValidators

type Interface added in v1.2.0

type Interface interface {
	// contains filtered or unexported methods
}

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 NewState added in v1.1.0

func NewState(height uint64, db db.DB, events eventsdb.IEventsDB, cacheSize int, keepEvery, keepRecent int64) (*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) Tree added in v1.2.0

func (s *State) Tree() tree.MTree

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