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 { vm_context.Chain NewGenesisSnapshotBlock() ledger.SnapshotBlock NewSecondSnapshotBlock() ledger.SnapshotBlock NewGenesisMintageBlock() (ledger.AccountBlock, vmctxt_interface.VmDatabase) NewGenesisMintageSendBlock() (ledger.AccountBlock, vmctxt_interface.VmDatabase) NewGenesisConsensusGroupBlock() (ledger.AccountBlock, vmctxt_interface.VmDatabase) NewGenesisRegisterBlock() (ledger.AccountBlock, vmctxt_interface.VmDatabase) AccountType(address *types.Address) (uint64, error) GetLatestBlockEventId() (uint64, error) GetEvent(eventId uint64) (byte, []types.Hash, error) ChainDb() *chain_db.ChainDb TrieDb() *leveldb.DB CleanTrieNodePool() GenStateTrieFromDb(prevStateHash types.Hash, snapshotContent ledger.SnapshotContent) (*trie.Trie, error) ShallowCheckStateTrie(stateHash *types.Hash) (bool, error) IsGenesisSnapshotBlock(block *ledger.SnapshotBlock) bool IsGenesisAccountBlock(block *ledger.AccountBlock) bool StopSaveTrie() StartSaveTrie() }
type Collector ¶
type Collector interface { Start() Stop() Status() uint8 Check() (bool, error) Recover() (returnErr error) RetainMinHeight() uint64 }
func NewCollector ¶
type Marker ¶
type Marker struct {
// contains filtered or unexported fields
}
func (*Marker) MarkAndClean ¶
func (*Marker) RetainSnapshotHeight ¶ added in v1.3.0
Click to show internal directories.
Click to hide internal directories.