Documentation ¶
Index ¶
- Constants
- func InName(k *keys.Uint256) (ret []byte)
- func Name2BKey(name string, num uint64) (ret []byte)
- func OutName0(k *keys.Uint256) (ret []byte)
- type Current
- type CurrentGet
- type Data
- func (self *Data) AddDel(in *keys.Uint256)
- func (self *Data) AddNil(in *keys.Uint256)
- func (self *Data) AddOut(root *keys.Uint256, out *localdb.OutState, txhash *keys.Uint256)
- func (self *Data) AddTxOut(pkr *keys.PKr) int
- func (state *Data) Clear()
- func (self *Data) GetDels() (dels []keys.Uint256)
- func (self *Data) GetIndex() (index int64)
- func (self *Data) GetOut(tr tri.Tri, root *keys.Uint256) (src *localdb.OutState)
- func (self *Data) GetRoots() (roots []keys.Uint256)
- func (self *Data) HasIn(tr tri.Tri, hash *keys.Uint256) (exists bool)
- func (self *Data) LoadState(tr tri.Tri)
- func (self *Data) RecordState(putter serodb.Putter, root *keys.Uint256)
- func (self *Data) SaveState(tr tri.Tri)
- type IData
- type State0BlockGet
- type StateBlock
Constants ¶
View Source
const BLOCK_NAME = "ZState0_BLOCK"
View Source
const LAST_OUTSTATE0_NAME = tri.KEY_NAME("ZState0_Cur")
View Source
const ZSTATE0_INNAME = "ZState0_InName"
View Source
const ZSTATE0_OUTNAME = "ZState0_OutName"
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CurrentGet ¶
type CurrentGet struct {
Out Current
}
func (*CurrentGet) Unserial ¶
func (self *CurrentGet) Unserial(v []byte) (e error)
type Data ¶
type Data struct { Num uint64 Cur Current Block StateBlock G2outs map[keys.Uint256]*localdb.OutState H2tx map[keys.Uint256]*keys.Uint256 Dirty_G2ins map[keys.Uint256]bool Dirty_G2outs map[keys.Uint256]bool }
type IData ¶
type IData interface { Clear() AddTxOut(pkr *keys.PKr) int AddOut(root *keys.Uint256, out *localdb.OutState, txhash *keys.Uint256) AddNil(in *keys.Uint256) AddDel(in *keys.Uint256) LoadState(tr tri.Tri) SaveState(tr tri.Tri) RecordState(putter serodb.Putter, root *keys.Uint256) HasIn(tr tri.Tri, hash *keys.Uint256) (exists bool) GetOut(tr tri.Tri, root *keys.Uint256) (src *localdb.OutState) GetRoots() (roots []keys.Uint256) GetDels() (dels []keys.Uint256) }
type State0BlockGet ¶
type State0BlockGet struct {
Out StateBlock
}
func (*State0BlockGet) Unserial ¶
func (self *State0BlockGet) Unserial(v []byte) (e error)
Click to show internal directories.
Click to hide internal directories.