state

package
v0.0.11 Latest Latest
Warning

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

Go to latest
Published: Dec 8, 2022 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SaveSnapshotState

func SaveSnapshotState(monDB *db.Database, snapshotState *SnapshotState) error

Types

type SnapshotState

type SnapshotState struct {
	Account            accounts.Account
	RawBClaims         []byte
	RawSigGroup        []byte
	BlockHeader        *objs.BlockHeader
	LastSnapshotHeight int
	DesperationDelay   int
	DesperationFactor  int
	RandomSeedHash     []byte
}

func GetSnapshotState

func GetSnapshotState(monDB *db.Database) (*SnapshotState, error)

func (*SnapshotState) LoadState

func (state *SnapshotState) LoadState(txn *badger.Txn) error

func (*SnapshotState) PersistState

func (state *SnapshotState) PersistState(txn *badger.Txn) error

Jump to

Keyboard shortcuts

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