Versions in this module Expand all Collapse all v2 v2.0.2 Jul 2, 2020 Changes in this version + const BITSPERKEY + func BlockhashKey(height uint32) []byte + func CurrentBlockHashKey() []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 TrieNodeKey(key []byte) []byte + func TriePrunedHeightKey() []byte + func TrieRefCountHeightKey() []byte + func TrieRefCountKey(key []byte) []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_Node + const TRIE_PrunedHeight + const TRIE_RefCount + const TRIE_RefCountHeight + 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 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