Versions in this module Expand all Collapse all v1 v1.0.0 Jan 4, 2023 Changes in this version + func CheckFileExist(path string) (bool, error) + func NewStateBloomFromDisk(filename string) (*stateBloom, error) + func RecoverPruning(datadir string, db ethdb.Database, trieCachePath string, triesInMemory uint64) error + type BlockPruner struct + BlockAmountReserved uint64 + func NewBlockPruner(db ethdb.Database, n *node.Node, oldAncientPath, newAncientPath string, ...) *BlockPruner + func (p *BlockPruner) AncientDbReplacer() error + func (p *BlockPruner) BlockPruneBackUp(name string, cache, handles int, namespace string, readonly, interrupt bool) error + func (p *BlockPruner) RecoverInterruption(name string, cache, handles int, namespace string, readonly bool) error + type Pruner struct + func NewAllPruner(db ethdb.Database) (*Pruner, error) + func NewPruner(db ethdb.Database, datadir, trieCachePath string, ...) (*Pruner, error) + func (p *Pruner) Prune(root common.Hash) error + func (p *Pruner) PruneAll(genesis *core.Genesis) error