Skip to content

Offline Pruning with Ancient Chain Data Directory #22542

@0xj0e1

Description

@0xj0e1

System information

Geth version: 1.10.1 stable
OS & Version: Linux Ubuntu 20.04.2 LTS
Commit hash : (if develop)

Expected behaviour

Expect geth to prune state with ancient chain data directory using:

geth snapshot prune-state --datadir.ancient

Actual behaviour

Unable to prune state with or without the ancient data directory flag

When attempting to offline prune state without the ancient data directory:

geth snapshot prune-state
Fatal: Could not open database: ancient chain segments already extracted, please set --datadir.ancient to the correct path

But when attempting to prune state with the ancient data directory flag I get:

geth snapshot prune-state --datadir.ancient
Incorrect Usage: flag provided but not defined: -datadir.ancient

Steps to reproduce the behaviour

Setup the ancient data directory option and attempt to prune state

geth snapshot prune-state --datadir.ancient

Backtrace

[backtrace]

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions