Versions in this module Expand all Collapse all v1 v1.0.2 Aug 16, 2022 v1.0.1 Aug 8, 2022 Changes in this version + const BITSPERKEY + const DBConfigSuffix + func BlockhashKey(height uint32) []byte + func CurrentBlockHashKey() []byte + func CurrentFastSyncRoot() []byte + func CurrentStateTrie() []byte + func DonationKey(height uint32) []byte + func HeaderKey(blockHash common.Uint256) []byte + func PrepaidKey(programHash common.Uint160) []byte + func TransactionKey(txHash common.Uint256) []byte + func TrieCompactHeightKey() []byte + func TrieFastSyncRootHeightKey() []byte + func TrieFastSyncStatusKey() []byte + func TrieNodeKey(key []byte) []byte + func TriePrunedHeightKey() []byte + func TrieRefCountHeightKey() []byte + func TrieRefCountKey(key []byte) []byte + func TrieRefCountNeedResetKey() []byte + func VersionKey() []byte + type DataEntryPrefix byte + const CFG_Version + const DATA_BlockHash + const DATA_Header + const DATA_Transaction + const ST_Prepaid + const ST_StateTrie + const SYS_CurrentBlock + const SYS_Donations + const TRIE_CompactHeight + const TRIE_FastSyncRoot + const TRIE_FastSyncRootHeight + const TRIE_FastSyncStatus + const TRIE_Node + const TRIE_PrunedHeight + const TRIE_RefCount + const TRIE_RefCountHeight + const TRIE_RefCountNeedReset + type IIterator interface + First func() bool + Key func() []byte + Last func() bool + Next func() bool + Prev func() bool + Release func() + Seek func(key []byte) bool + Value func() []byte + type IStore interface + BatchCommit func() error + BatchDelete func(key []byte) error + BatchPut func(key []byte, value []byte) error + Close func() error + Compact func() error + Delete func(key []byte) error + Get func(key []byte) ([]byte, error) + Has func(key []byte) (bool, error) + NewBatch func() error + NewIterator func(prefix []byte) IIterator + Put func(key []byte, value []byte) error + type Iterator struct + func (it *Iterator) First() bool + func (it *Iterator) Key() []byte + func (it *Iterator) Last() bool + func (it *Iterator) Next() bool + func (it *Iterator) Prev() bool + func (it *Iterator) Release() + func (it *Iterator) Seek(key []byte) bool + func (it *Iterator) Value() []byte + type LevelDBConfig struct + BlockCacheCapacity int + CompactionL0Trigger int + CompactionTableSize int + DisableSeeksCompaction bool + WriteBuffer int + WriteL0PauseTrigger int + WriteL0SlowdownTrigger int + func NewLevelDBConfig(file string) *LevelDBConfig + type LevelDBStore struct + func NewLevelDBStore(file string) (*LevelDBStore, error) + func (self *LevelDBStore) BatchCommit() error + func (self *LevelDBStore) BatchDelete(key []byte) error + func (self *LevelDBStore) BatchPut(key []byte, value []byte) error + func (self *LevelDBStore) Close() error + func (self *LevelDBStore) Compact() error + func (self *LevelDBStore) Delete(key []byte) error + func (self *LevelDBStore) Get(key []byte) ([]byte, error) + func (self *LevelDBStore) Has(key []byte) (bool, error) + func (self *LevelDBStore) NewBatch() error + func (self *LevelDBStore) NewIterator(prefix []byte) IIterator + func (self *LevelDBStore) Put(key []byte, value []byte) error