Versions in this module Expand all Collapse all v0 v0.6.2 Apr 3, 2024 Changes in this version type ADS + func (mads *ADS) DeactivateEntry(shardID int, sn int64) v0.6.0 Jan 23, 2024 Changes in this version + const BucketCount + const DefaultHPFileSize + const HPFileBufferSize + const JobChanSize + const KeptEntriesToActiveEntriesRatio + const MinDeactiveEntries + const MinKeptTwigs + const RootCacheSizeLimit + const StartReapThres + var DebugPanicNumber int + var NewOverOldFile *os.File = nil + var Phase0Time uint64 + var Phase1Time uint64 + var Phase1n2Time uint64 + var Phase2Time uint64 + var Phase3Time uint64 + var Phase4Time uint64 + type ADS struct + func NewADS(dirName string, canQueryHistory bool, startEndKeys [][]byte) (*ADS, error) + func NewADS4Mock(startEndKeys [][]byte) *ADS + func (mads *ADS) ActiveCount() int + func (mads *ADS) BeginWrite(height int64) + func (mads *ADS) CheckConsistency() + func (mads *ADS) CheckHashConsistency() + func (mads *ADS) Close() + func (mads *ADS) DeactiviateEntry(shardID int, sn int64) + func (mads *ADS) Delete(key []byte) + func (mads *ADS) EndWrite() + func (mads *ADS) GetCurrHeight() int64 + func (mads *ADS) GetEntry(k []byte) *Entry + func (mads *ADS) GetEntryAtHeight(k []byte, height uint64) *Entry + func (mads *ADS) GetProof(k []byte) (entryBz, proofBz []byte, err error) + func (mads *ADS) GetRootHash() []byte + func (mads *ADS) PrepareForDeletion(k []byte) (findIt bool) + func (mads *ADS) PrepareForUpdate(k []byte) + func (mads *ADS) PrintIdxTree() + func (mads *ADS) PrintMetaInfo() + func (mads *ADS) PruneBeforeHeight(height int64) + func (mads *ADS) ScanAll(fn func(key, value []byte)) + func (mads *ADS) Set(key, value []byte) + type BucketMap struct + func NewBucketMap(sizeList []int) *BucketMap + func (bm *BucketMap) GetSizes() []int + func (bm *BucketMap) Load(key string) (value *HotEntry, ok bool) + func (bm *BucketMap) Store(key string, value *HotEntry) + type BucketSet struct + func NewBucketSet(sizeList []int) *BucketSet + func (bs *BucketSet) GetSizes() []int + func (bs *BucketSet) Store(key string) + type Entry = types.Entry + type HotEntry = types.HotEntry