Skip to content

Commit 3de0c9d

Browse files
committed
Do not track minium version for history expiry
1 parent 0f120f3 commit 3de0c9d

1 file changed

Lines changed: 0 additions & 10 deletions

File tree

ethd

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -3322,7 +3322,6 @@ prune-history() {
33223322
local rpc_line
33233323
local regex
33243324
local client
3325-
local min_ver
33263325
local extra_msg
33273326
local prune_marker
33283327
local warning
@@ -3514,7 +3513,6 @@ prune-history() {
35143513
echo "Aborting."
35153514
exit 1
35163515
fi
3517-
min_ver="v1.16.0"
35183516
if [[ "${must_resync}" -eq 0 ]]; then
35193517
extra_msg="History can be pruned by Geth without requiring a full resync. You can observe pruning with \"./ethd logs -f execution\"."
35203518
prune_marker="/var/lib/geth/prune-marker"
@@ -3530,7 +3528,6 @@ prune-history() {
35303528
echo "Aborting."
35313529
exit 1
35323530
fi
3533-
min_ver="v0.10.0"
35343531
extra_msg="To switch to ${target} expiry requires a full resync, which should take 5 days.\nYou can use https://rescuenode.com to keep attesting during resync."
35353532
prune_marker=""
35363533
;;
@@ -3541,7 +3538,6 @@ prune-history() {
35413538
echo "Aborting."
35423539
exit 1
35433540
fi
3544-
min_ver="v1.35.2"
35453541
extra_msg="To switch to ${target} expiry requires a full resync, which should take 1-2 hours.\nYou can use https://rescuenode.com to keep attesting during resync."
35463542
prune_marker=""
35473543
;;
@@ -3552,13 +3548,11 @@ prune-history() {
35523548
echo "Aborting."
35533549
exit 1
35543550
fi
3555-
min_ver="25.11.0"
35563551
extra_msg="To switch to ${target} expiry requires a full resync, which should take 16-24 hours.\nYou can use https://rescuenode.com to keep attesting during resync."
35573552
prune_marker=""
35583553
;;
35593554
*reth.yml*)
35603555
client="Reth"
3561-
min_ver="v1.8.0"
35623556
if [[ "${must_resync}" -eq 0 ]]; then
35633557
extra_msg="${target} expiry does not require a resync and should be immediate.\nA resync saves more space than a prune: You can set \"EL_NODE_TYPE=${target}-expiry\" manually with \"nano .env\" and then resync with \"./ethd resync-execution\"."
35643558
prune_marker="/var/lib/reth/minimal-node"
@@ -3574,7 +3568,6 @@ prune-history() {
35743568
echo "Aborting."
35753569
exit 1
35763570
fi
3577-
min_ver="v3.0.12"
35783571
extra_msg="To switch to ${target} expiry requires a full resync, which should take 2-3 hours.\nYou can use https://rescuenode.com to keep attesting during resync."
35793572
prune_marker=""
35803573
;;
@@ -3585,7 +3578,6 @@ prune-history() {
35853578
echo "Aborting."
35863579
exit 1
35873580
fi
3588-
min_ver="v1.0.0"
35893581
if [[ "${target}" = "pre-merge" ]]; then
35903582
extra_msg="Ethrex always expires pre-merge history. This command will have no effect."
35913583
prune_marker="/var/lib/ethrex/minimal-node"
@@ -3601,8 +3593,6 @@ prune-history() {
36013593
;;
36023594
esac
36033595

3604-
echo "${target} history expiry requires ${client} ${min_ver} or later."
3605-
echo
36063596
if [[ -n "${extra_msg:-}" ]]; then
36073597
echo -e "${extra_msg}"
36083598
echo

0 commit comments

Comments
 (0)