Documentation ¶
Index ¶
Constants ¶
View Source
const ( // Full pruner mode. Full = Mode("full") // Archive pruner mode. Archive = Mode("archive") )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ArchiveNode ¶
type ArchiveNode struct{}
ArchiveNode is a no-op since we don't prune nodes in archive mode.
func (*ArchiveNode) StoreJournalRecord ¶
func (a *ArchiveNode) StoreJournalRecord(_, _ map[common.Hash]struct{}, _ common.Hash, _ int64) error
StoreJournalRecord for archive node doesn't do anything.
type Pruner ¶
type Pruner interface { StoreJournalRecord(deletedHashesSet, insertedHashesSet map[common.Hash]struct{}, blockHash common.Hash, blockNum int64) error }
Pruner is implemented by FullNode and ArchiveNode.
func NewFullNode ¶
func NewFullNode(db, storageDB chaindb.Database, retainBlocks int64, l log.LeveledLogger) (Pruner, error)
NewFullNode creates a Pruner for full node.
Click to show internal directories.
Click to hide internal directories.