zstate

package
v0.5.0-beta.r5-hotfix.1 Latest Latest
Warning

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

Go to latest
Published: Jan 28, 2019 License: GPL-3.0 Imports: 10 Imported by: 6

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BlockKey

func BlockKey(num uint64, hash *keys.Uint256) []byte

Types

type Block

type Block struct {
	Roots []keys.Uint256
	Dels  []keys.Uint256
	Pkgs  []keys.Uint256
}

func (*Block) Serial

func (self *Block) Serial() (ret []byte, e error)

type BlockGet

type BlockGet struct {
	Out *Block
}

func (*BlockGet) Unserial

func (self *BlockGet) Unserial(v []byte) (e error)

type ZState

type ZState struct {
	Tri tri.Tri

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

func NewState

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

func (*ZState) AddOut_O

func (state *ZState) AddOut_O(out *stx.Out_O)

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)

func (*ZState) Copy

func (self *ZState) Copy() *ZState

func (*ZState) GetBlock

func (self *ZState) GetBlock(num uint64, hash *keys.Uint256) (ret *Block)

func (*ZState) RecordBlock

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