Documentation ¶
Index ¶
- func DisableLog()
- func New(cfg *types.Store, sub []byte) queue.Module
- func SetLogLevel(level string)
- type Store
- func (mpts *Store) Close()
- func (mpts *Store) Commit(req *types.ReqHash) ([]byte, error)
- func (mpts *Store) CommitUpgrade(req *types.ReqHash) ([]byte, error)
- func (mpts *Store) Del(req *types.StoreDel) ([]byte, error)
- func (mpts *Store) Get(datas *types.StoreGet) [][]byte
- func (mpts *Store) IterateRangeByStateHash(statehash []byte, start []byte, end []byte, ascending bool, ...)
- func (mpts *Store) MemSet(datas *types.StoreSet, sync bool) ([]byte, error)
- func (mpts *Store) MemSetUpgrade(datas *types.StoreSet, sync bool) ([]byte, error)
- func (mpts *Store) ProcEvent(msg *queue.Message)
- func (mpts *Store) Rollback(req *types.ReqHash) ([]byte, error)
- func (mpts *Store) Set(datas *types.StoreSet, sync bool) ([]byte, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Store ¶
Store mpt store struct
func (*Store) CommitUpgrade ¶
CommitUpgrade convert memcory mpt to storage db
func (*Store) IterateRangeByStateHash ¶
func (mpts *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 set keys values to memcory mpt, return root hash and error
Directories ¶
Path | Synopsis |
---|---|
Package mpt implements Merkle Patricia Tries.
|
Package mpt implements Merkle Patricia Tries. |
Package mpt implements Merkle Patricia Tries.
|
Package mpt implements Merkle Patricia Tries. |
rlp
Package rlp implements the RLP serialization format.
|
Package rlp implements the RLP serialization format. |
Click to show internal directories.
Click to hide internal directories.