state

package
v0.0.0-...-c04c664 Latest Latest
Warning

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

Go to latest
Published: Sep 5, 2020 License: MIT Imports: 32 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type State

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

	ProcessedDeposits    *processeddeposits.ProcessedDeposits
	SignatorySet         *signatorysets.SignatorySet
	PendingWithdrawals   *withdrawals.Withdrawals
	Utxos                *utxos.Utxos
	FinalizedCheckpoints *finalizedcheckpoints.FinalizedCheckpoints
	ActiveCheckpoint     *activecheckpoint.ActiveCheckpoint
	Headers              *headers.Headers
	// contains filtered or unexported fields
}

func NewCheckState

func NewCheckState(state *State) *State

func NewCheckStateAtHeight

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

func NewState

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

func (*State) Check

func (s *State) Check() error

func (*State) Commit

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

func (*State) Events

func (s *State) Events() eventsdb.IEventsDB

func (*State) Export

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

func (*State) FinalizeBtcCheckpoint

func (s *State) FinalizeBtcCheckpoint(height uint64) error

func (*State) FinalizeMntCheckpoint

func (s *State) FinalizeMntCheckpoint(height uint64, encodedTx []byte) error

func (*State) Import

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

func (*State) Lock

func (s *State) Lock()

func (*State) MultisigAddress

func (s *State) MultisigAddress() types.Address

func (*State) NewBtcCheckpoint

func (s *State) NewBtcCheckpoint(h uint64) bool

func (*State) NewMntCheckpoint

func (s *State) NewMntCheckpoint(h uint64) bool

func (*State) RLock

func (s *State) RLock()

func (*State) RUnlock

func (s *State) RUnlock()

func (*State) Unlock

func (s *State) Unlock()

Jump to

Keyboard shortcuts

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