data_v1

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: 7 Imported by: 0

Documentation

Index

Constants

View Source
const ZSTATE0_ROOT_OUT = "$ZState0$ROOT-OUT$"

Variables

This section is empty.

Functions

This section is empty.

Types

type Data

type Data struct {
	Num uint64

	Root2Out map[c_type.Uint256]localdb.RootState

	Dels  utils.Dirtys
	Nils  utils.HSet
	Roots utils.HSet

	PKr2Count map[c_type.PKr]int
}

func NewData

func NewData(num uint64) (ret *Data)

func (*Data) AddDel

func (self *Data) AddDel(in *c_type.Uint256)

func (*Data) AddNil

func (self *Data) AddNil(in *c_type.Uint256)

func (*Data) AddOut

func (self *Data) AddOut(root *c_type.Uint256, out *localdb.OutState, txhash *c_type.Uint256)

func (*Data) AddTxOut

func (self *Data) AddTxOut(pkr *c_type.PKr) int

func (*Data) Clear

func (state *Data) Clear()

func (*Data) GetDels

func (self *Data) GetDels() (dels []c_type.Uint256)

func (*Data) GetOut

func (self *Data) GetOut(tr tri.Tri, root *c_type.Uint256) (src *localdb.OutState)

func (*Data) GetRoots

func (self *Data) GetRoots() (roots []c_type.Uint256)

func (*Data) HasIn

func (self *Data) HasIn(tr tri.Tri, hash *c_type.Uint256) (exists bool)

func (*Data) HashRoot

func (self *Data) HashRoot(tr tri.Tri, root *c_type.Uint256) bool

func (*Data) LoadState

func (self *Data) LoadState(tr tri.Tri)

func (*Data) RecordState

func (self *Data) RecordState(putter decedb.Putter, root *c_type.Uint256)

func (*Data) SaveState

func (self *Data) SaveState(tr tri.Tri)

Jump to

Keyboard shortcuts

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