Documentation ¶
Index ¶
- Constants
- func Bytes2Key(prefix string, bytes []byte) (ret []byte)
- type Account
- type DB
- func (self *DB) AddAccount(tk *keys.Uint512, next_num uint64) (ret bool)
- func (self *DB) AddNil(batch *leveldb.Batch, del *keys.Uint256) (tkroot TkRoot, out lstate.OutState, e error)
- func (self *DB) AddOut(batch *leveldb.Batch, a *Account, num uint64, root *keys.Uint256, ...) (ret bool)
- func (self *DB) AddPkg(a *Account, pg *localdb.ZPkg) (ret bool)
- func (self *DB) DB() (ret *leveldb.DB)
- func (self *DB) GetAccount(k *keys.Uint512) (ret Account)
- func (self *DB) GetOut(root *keys.Uint256) (out lstate.OutState, e error)
- func (self *DB) GetOuts(tk *keys.Uint512) (outs []*lstate.OutState, e error)
- func (self *DB) GetStateOut(tk *keys.Uint512, num uint64, root *keys.Uint256, os *localdb.OutState) (ret *lstate.OutState)
- func (self *DB) SetAccount(batch *leveldb.Batch, a *Account)
- type Out
- type TkRoot
Constants ¶
View Source
const NIL_ROOT_KEY = "NIL$ROOT$KEY-"
View Source
const ROOT_OUT_KEY = "ROOT$OUT$KEY-"
View Source
const TKROOT_ROOT_KEY = "TKROOT$ROOT$KEY-"
View Source
const TK_LASTNUM_KEY = "TK$LASTNUM$KEY-"
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Account ¶
Click to show internal directories.
Click to hide internal directories.