zstate

package
v0.0.0-...-93382e6 Latest Latest
Warning

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

Go to latest
Published: Mar 10, 2022 License: GPL-3.0 Imports: 14 Imported by: 0

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) RecordBlock

func (self *ZState) RecordBlock(db decedb.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