Documentation ¶
Overview ¶
Package mavl 默克尔平衡树接口
Index ¶
- func DisableLog()
- func New(cfg *types.Store, sub []byte, chain33cfg *types.Chain33Config) queue.Module
- func SetLogLevel(level string)
- type Store
- func (mavls *Store) Close()
- func (mavls *Store) Commit(req *types.ReqHash) ([]byte, error)
- func (mavls *Store) CommitUpgrade(req *types.ReqHash) ([]byte, error)
- func (mavls *Store) Del(req *types.StoreDel) ([]byte, error)
- func (mavls *Store) Get(datas *types.StoreGet) [][]byte
- func (mavls *Store) IterateRangeByStateHash(statehash []byte, start []byte, end []byte, ascending bool, ...)
- func (mavls *Store) MemSet(datas *types.StoreSet, sync bool) ([]byte, error)
- func (mavls *Store) MemSetUpgrade(datas *types.StoreSet, sync bool) ([]byte, error)
- func (mavls *Store) ProcEvent(msg *queue.Message)
- func (mavls *Store) Rollback(req *types.ReqHash) ([]byte, error)
- func (mavls *Store) Set(datas *types.StoreSet, sync bool) ([]byte, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Store ¶
Store mavl store struct
func (*Store) CommitUpgrade ¶
CommitUpgrade convert memcory mavl to storage db
func (*Store) IterateRangeByStateHash ¶
func (mavls *Store) IterateRangeByStateHash(statehash []byte, start []byte, end []byte, ascending bool, fn func(key, value []byte) bool)
IterateRangeByStateHash 迭代实现功能; statehash:当前状态hash, start:开始查找的key, end: 结束的key, ascending:升序,降序, fn 迭代回调函数
func (*Store) MemSetUpgrade ¶
MemSetUpgrade cacl mavl, but not store tree, return root hash and error
Click to show internal directories.
Click to hide internal directories.