Documentation ¶
Index ¶
- Constants
- func InName(k *c_type.Uint256) (ret []byte)
- func Name2BKey(name string, num uint64) (ret []byte)
- func OutName0(k *c_type.Uint256) (ret []byte)
- type AddDelLog
- type AddNilLog
- type AddOutLog
- type AddTxOutLog
- type Current
- type CurrentGet
- type Data
- func (self *Data) AddDel(in *c_type.Uint256)
- func (self *Data) AddNil(in *c_type.Uint256)
- func (self *Data) AddOut(root *c_type.Uint256, out *localdb.OutState, txhash *c_type.Uint256)
- func (self *Data) AddTxOut(pkr *c_type.PKr) int
- func (state *Data) Clear()
- func (self *Data) GetDels() (dels []c_type.Uint256)
- func (self *Data) GetIndex() (index int64)
- func (self *Data) GetOut(tr tri.Tri, root *c_type.Uint256) (src *localdb.OutState)
- func (self *Data) GetRoots() (roots []c_type.Uint256)
- func (self *Data) HasIn(tr tri.Tri, hash *c_type.Uint256) (exists bool)
- func (self *Data) HashRoot(tr tri.Tri, root *c_type.Uint256) bool
- func (self *Data) LoadState(tr tri.Tri)
- func (self *Data) RecordState(putter axisdb.Putter, root *c_type.Uint256)
- func (self *Data) SaveState(tr tri.Tri)
- type IData
- type Log
- type Revision
- 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 AddTxOutLog ¶
func (AddTxOutLog) Op ¶
func (log AddTxOutLog) Op(state IData)
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[c_type.Uint256]*localdb.OutState H2tx map[c_type.Uint256]*c_type.Uint256 Dirty_G2ins map[c_type.Uint256]bool Dirty_G2outs map[c_type.Uint256]bool }
func (*Data) RecordState ¶
type IData ¶
type IData interface { Clear() AddTxOut(pkr *c_type.PKr) int AddOut(root *c_type.Uint256, out *localdb.OutState, txhash *c_type.Uint256) AddNil(in *c_type.Uint256) AddDel(in *c_type.Uint256) LoadState(tr tri.Tri) SaveState(tr tri.Tri) RecordState(putter axisdb.Putter, root *c_type.Uint256) HasIn(tr tri.Tri, hash *c_type.Uint256) (exists bool) GetOut(tr tri.Tri, root *c_type.Uint256) (src *localdb.OutState) HashRoot(tr tri.Tri, root *c_type.Uint256) bool GetRoots() (roots []c_type.Uint256) GetDels() (dels []c_type.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.