Documentation ¶
Index ¶
- Constants
- func AnalyzeNils(header *types.Header, ch Chain)
- func CalcRoot(value *keys.Uint256, pos uint64, paths *[DEPTH]keys.Uint256) (ret keys.Uint256)
- func Combine(l *keys.Uint256, r *keys.Uint256) (out keys.Uint256)
- func Debug_Weak_panic(msg string, ctx ...interface{})
- func Need_debug() bool
- type Chain
- type Leaf
- type MerkleTree
- type State
- func (self *State) AddDel_Log(in *keys.Uint256)
- func (self *State) AddNil_Log(in *keys.Uint256)
- func (state *State) AddOut(out_o *stx.Out_O, out_z *stx.Out_Z, txhash *keys.Uint256) (root keys.Uint256)
- func (self *State) AddOut_Log(root *keys.Uint256, out *localdb.OutState, txhash *keys.Uint256)
- func (state *State) AddStx(st *stx.T) (e error)
- func (self *State) AddTxOut_Log(pkr *keys.PKr) int
- func (self *State) GetBlockDels() (dels []keys.Uint256)
- func (self *State) GetBlockRoots() (roots []keys.Uint256)
- func (state *State) GetOut(root *keys.Uint256) (src *localdb.OutState)
- func (self *State) HasIn(hash *keys.Uint256) (exists bool)
- func (self *State) Num() uint64
- func (self *State) PreGenerateRoot(header *types.Header, ch Chain)
- func (self *State) RecordState(putter serodb.Putter, root *keys.Uint256)
- func (state *State) Revert(revid int)
- func (state *State) Snapshot(revid int)
- func (self *State) Tri() tri.Tri
- func (self *State) Update()
- type State0Trees
Constants ¶
View Source
const DEPTH = cpt.DEPTH
Variables ¶
This section is empty.
Functions ¶
func AnalyzeNils ¶
func Debug_Weak_panic ¶
func Debug_Weak_panic(msg string, ctx ...interface{})
func Need_debug ¶
func Need_debug() bool
Types ¶
type MerkleTree ¶
type MerkleTree struct {
// contains filtered or unexported fields
}
func NewMerkleTree ¶
func NewMerkleTree(db tri.Tri) (ret MerkleTree)
func (*MerkleTree) AppendLeaf ¶
func (self *MerkleTree) AppendLeaf(value keys.Uint256) keys.Uint256
func (*MerkleTree) GetLeafSize ¶
func (self *MerkleTree) GetLeafSize() (ret uint64)
type State ¶
type State struct { MTree MerkleTree // contains filtered or unexported fields }
func (*State) AddDel_Log ¶
func (*State) AddNil_Log ¶
func (*State) AddOut_Log ¶
func (*State) GetBlockDels ¶
func (*State) GetBlockRoots ¶
func (*State) RecordState ¶
Click to show internal directories.
Click to hide internal directories.