Documentation ¶
Index ¶
Constants ¶
View Source
const ( DBKP_CLEARED_HEIGHT = byte(1) DBKP_MARKED_HEIGHT = byte(2) DBKP_MARKED_HASHLIST = byte(3) )
View Source
const ( STATUS_STOPPED = 1 STATUS_STARTED = 2 STATUS_MARKING_AND_CLEANING = 3 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Chain ¶
type Chain interface { GetLatestSnapshotBlock() *ledger.SnapshotBlock GetSnapshotBlocksByHeight(height uint64, count uint64, forward bool, containSnapshotContent bool) ([]*ledger.SnapshotBlock, error) GetLatestBlockEventId() (uint64, error) GetAccountBlockByHash(blockHash *types.Hash) (*ledger.AccountBlock, error) GetSnapshotBlockByHash(hash *types.Hash) (*ledger.SnapshotBlock, error) GetEvent(eventId uint64) (byte, []types.Hash, error) ChainDb() *chain_db.ChainDb GetSnapshotBlockByHeight(height uint64) (*ledger.SnapshotBlock, error) TrieDb() *leveldb.DB CleanTrieNodePool() StopSaveTrie() StartSaveTrie() }
Click to show internal directories.
Click to hide internal directories.