state

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

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

Go to latest
Published: Jul 7, 2020 License: MIT Imports: 20 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) Halts added in v1.2.0

func (cs *CheckState) Halts() halts.RHalts

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
	Halts       *halts.HaltBlocks
	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, keepLastStates 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