Versions in this module Expand all Collapse all v1 v1.0.0 Jan 6, 2023 Changes in this version + const FlagTrieAccStoreCache + const FlagTrieCacheSize + const FlagTrieDirtyDisabled + const FlagTrieImgsLimit + const FlagTrieNodesLimit + const FlagTrieWriteAhead + const ProofOpMptAbsence + const ProofOpMptValue + const StoreKey + const StoreTypeMPT + const TriesInMemory + var EmptyCodeHash = crypto.Keccak256Hash(nil) + var EmptyCodeHashBytes = crypto.Keccak256(nil) + var EmptyRootHash = ethtypes.EmptyRootHash + var EmptyRootHashBytes = EmptyRootHash.Bytes() + var GAccToPrefetchChannel = make(chan [][]byte, 2000) + var GAccTrieUpdatedChannel = make(chan struct{}) + var GAccTryUpdateTrieChannel = make(chan struct{}) + var KeyPrefixAccLatestStoredHeight = []byte + var KeyPrefixAccRootMptHash = []byte + var KeyPrefixEvmLatestStoredHeight = []byte + var KeyPrefixEvmRootMptHash = []byte + var NilHash = ethcmn.Hash + var TrieAccStoreCache uint = 32 + var TrieCacheSize uint = 2048 + var TrieCommitGap int64 = 100 + var TrieDirtyDisabled = false + var TrieImgsLimit uint = 4 + var TrieNodesLimit uint = 256 + var TrieWriteAhead = false + func InstanceOfMptStore() ethstate.Database + type MptStore struct + func NewMptStore(logger tmlog.Logger, id types.CommitID) (*MptStore, error) + func (ms *MptStore) CacheWrap() types.CacheWrap + func (ms *MptStore) CacheWrapWithTrace(w io.Writer, tc types.TraceContext) types.CacheWrap + func (ms *MptStore) CommitterCommit(delta *iavl.TreeDelta) (types.CommitID, *iavl.TreeDelta) + func (ms *MptStore) CommitterCommitMap(deltaMap iavl.TreeDeltaMap) (_ types.CommitID, _ iavl.TreeDeltaMap) + func (ms *MptStore) CurrentVersion() int64 + func (ms *MptStore) Delete(key []byte) + func (ms *MptStore) Get(key []byte) []byte + func (ms *MptStore) GetDBReadCount() int + func (ms *MptStore) GetDBReadTime() int + func (ms *MptStore) GetDBWriteCount() int + func (ms *MptStore) GetFlatKVReadCount() int + func (ms *MptStore) GetFlatKVReadTime() int + func (ms *MptStore) GetFlatKVWriteCount() int + func (ms *MptStore) GetFlatKVWriteTime() int + func (ms *MptStore) GetImmutable(height int64) (*MptStore, error) + func (ms *MptStore) GetLatestStoredBlockHeight() uint64 + func (ms *MptStore) GetMptRootHash(height uint64) ethcmn.Hash + func (ms *MptStore) GetNodeReadCount() int + func (ms *MptStore) GetStoreType() types.StoreType + func (ms *MptStore) Has(key []byte) bool + func (ms *MptStore) HasVersion(height int64) bool + func (ms *MptStore) Iterator(start, end []byte) types.Iterator + func (ms *MptStore) LastCommitID() types.CommitID + func (ms *MptStore) LastCommitVersion() int64 + func (ms *MptStore) OnStop() error + func (ms *MptStore) PushData2Database(curHeight int64) + func (ms *MptStore) Query(req abci.RequestQuery) (res abci.ResponseQuery) + func (ms *MptStore) ResetCount() + func (ms *MptStore) ReverseIterator(start, end []byte) types.Iterator + func (ms *MptStore) Set(key, value []byte) + func (ms *MptStore) SetLatestStoredBlockHeight(height uint64) + func (ms *MptStore) SetMptRootHash(height uint64, hash ethcmn.Hash) + func (ms *MptStore) SetPruning(options types.PruningOptions) + func (ms *MptStore) SetUpgradeVersion(i int64) + func (ms *MptStore) StartPrefetcher(namespace string) + func (ms *MptStore) StopPrefetcher() + func (ms *MptStore) StopWithVersion(targetVersion int64) error + type ProofList [][]byte + func (n *ProofList) Delete(key []byte) error + func (n *ProofList) Put(key []byte, value []byte) error + type TriePrefetcher struct + func NewTriePrefetcher(db ethstate.Database, root common.Hash, namespace string) *TriePrefetcher + func (p *TriePrefetcher) Close() + func (p *TriePrefetcher) Copy() *TriePrefetcher + func (p *TriePrefetcher) Prefetch(root common.Hash, keys [][]byte) + func (p *TriePrefetcher) Trie(root common.Hash) ethstate.Trie + func (p *TriePrefetcher) Used(root common.Hash, used [][]byte)