mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-27 07:06:42 +00:00
rm extra check
This commit is contained in:
parent
0a916cfd11
commit
e933ed48a8
1 changed files with 0 additions and 6 deletions
|
|
@ -621,12 +621,6 @@ func pruneHistory(ctx *cli.Context) error {
|
||||||
defer chaindb.Close()
|
defer chaindb.Close()
|
||||||
defer chain.Stop()
|
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.
|
// Determine the prune point. This will be the first PoS block.
|
||||||
prunePoint, ok := ethconfig.HistoryPrunePoints[chain.Genesis().Hash()]
|
prunePoint, ok := ethconfig.HistoryPrunePoints[chain.Genesis().Hash()]
|
||||||
if !ok || prunePoint == nil {
|
if !ok || prunePoint == nil {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue