Versions in this module Expand all Collapse all v0 v0.0.1 Oct 19, 2023 Changes in this version + func CheckFileExist(path string) (bool, error) + func NewStateBloomFromDisk(filename string) (*stateBloom, error) + func RecoverPruning(datadir string, db ethdb.Database, 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 Config struct + BloomSize uint64 + Datadir string + type Pruner struct + func NewAllPruner(db ethdb.Database) (*Pruner, error) + func NewPruner(db ethdb.Database, config Config, triesInMemory uint64) (*Pruner, error) + func (p *Pruner) Prune(root common.Hash) error + func (p *Pruner) PruneAll(genesis *core.Genesis) error