From c5e79d79c3e6405e5181834f6c96950208bf611f Mon Sep 17 00:00:00 2001 From: maskpp Date: Mon, 21 Apr 2025 21:30:05 +0800 Subject: [PATCH] Remove unnecessary --state.scheme and --db.engine flags when pruning the exist database. --- cmd/geth/chaincmd.go | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/cmd/geth/chaincmd.go b/cmd/geth/chaincmd.go index c57a9a947d..018c1b7737 100644 --- a/cmd/geth/chaincmd.go +++ b/cmd/geth/chaincmd.go @@ -195,7 +195,12 @@ This command dumps out the state for a given block (or latest, if none provided) Name: "prune-history", Usage: "Prune blockchain history (block bodies and receipts) up to the merge block", ArgsUsage: "", - Flags: utils.DatabaseFlags, + Flags: []cli.Flag{ + utils.DataDirFlag, + utils.AncientFlag, + utils.RemoteDBFlag, + utils.HttpHeaderFlag, + }, Description: ` The prune-history command removes historical block bodies and receipts from the blockchain database up to the merge block, while preserving block headers. This