zstate

package
v1.0.9-dev-review Latest Latest
Warning

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

Go to latest
Published: May 31, 2021 License: GPL-3.0 Imports: 16 Imported by: 6

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ZState

type ZState struct {
	Tri tri.Tri

	State txstate.State
	Pkgs  pkgstate.PkgState
	// contains filtered or unexported fields
}

func CurrentState

func CurrentState(tri0 tri.Tri, num uint64) (state *ZState)

func NextState

func NextState(tri0 tri.Tri, num int64) (state *ZState)

func (*ZState) AddStx

func (state *ZState) AddStx(st *stx.T) (e error)

func (*ZState) AddTxOut

func (state *ZState) AddTxOut(addr common.Address, asset assets.Asset, txhash common.Hash)

func (*ZState) AddTxOutWithCheck

func (state *ZState) AddTxOutWithCheck(addr common.Address, asset assets.Asset, txhash common.Hash) (alarm bool)

func (*ZState) Copy

func (self *ZState) Copy() *ZState

func (*ZState) Num

func (self *ZState) Num() uint64

func (*ZState) PreGenerateRoot

func (self *ZState) PreGenerateRoot(header *types.Header, ch txstate.Chain)

func (*ZState) RecordBlock

func (self *ZState) RecordBlock(db serodb.Putter, hash *c_type.Uint256)

func (*ZState) Revert

func (self *ZState) Revert(revid int)

func (*ZState) Snapshot

func (self *ZState) Snapshot(revid int)

func (*ZState) Update

func (self *ZState) Update()

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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