From e933ed48a80cb70a82cfa43d5e3692e726e3ea94 Mon Sep 17 00:00:00 2001 From: Sina Mahmoodi Date: Fri, 14 Mar 2025 10:11:36 +0100 Subject: [PATCH] rm extra check --- cmd/geth/chaincmd.go | 6 ------ 1 file changed, 6 deletions(-) diff --git a/cmd/geth/chaincmd.go b/cmd/geth/chaincmd.go index ab00f2aac0..a3e51796d0 100644 --- a/cmd/geth/chaincmd.go +++ b/cmd/geth/chaincmd.go @@ -621,12 +621,6 @@ func pruneHistory(ctx *cli.Context) error { defer chaindb.Close() defer chain.Stop() - // Pruning only supported for mainnet and sepolia. - if chain.Config().ChainID.Cmp(params.MainnetChainConfig.ChainID) != 0 && chain.Config().ChainID.Cmp(params.SepoliaChainConfig.ChainID) != 0 { - log.Info("Chain pruning not supported for this network") - return nil - } - // Determine the prune point. This will be the first PoS block. prunePoint, ok := ethconfig.HistoryPrunePoints[chain.Genesis().Hash()] if !ok || prunePoint == nil {