Skip to content

Commit 52cce45

Browse files
committed
Do not track minium version for history expiry
1 parent c5dc231 commit 52cce45

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
@@ -3440,7 +3440,6 @@ prune-history() {
34403440
local rpc_line
34413441
local regex
34423442
local client
3443-
local min_ver
34443443
local extra_msg
34453444
local prune_marker
34463445
local warning
@@ -3632,7 +3631,6 @@ prune-history() {
36323631
echo "Aborting."
36333632
exit 1
36343633
fi
3635-
min_ver="v1.16.0"
36363634
if [[ "${must_resync}" -eq 0 ]]; then
36373635
extra_msg="History can be pruned by Geth without requiring a full resync. You can observe pruning with \"./ethd logs -f execution\"."
36383636
prune_marker="/var/lib/geth/prune-marker"
@@ -3648,7 +3646,6 @@ prune-history() {
36483646
echo "Aborting."
36493647
exit 1
36503648
fi
3651-
min_ver="v0.10.0"
36523649
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."
36533650
prune_marker=""
36543651
;;
@@ -3659,7 +3656,6 @@ prune-history() {
36593656
echo "Aborting."
36603657
exit 1
36613658
fi
3662-
min_ver="v1.35.2"
36633659
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."
36643660
prune_marker=""
36653661
;;
@@ -3670,13 +3666,11 @@ prune-history() {
36703666
echo "Aborting."
36713667
exit 1
36723668
fi
3673-
min_ver="25.11.0"
36743669
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."
36753670
prune_marker=""
36763671
;;
36773672
*reth.yml*)
36783673
client="Reth"
3679-
min_ver="v1.8.0"
36803674
if [[ "${must_resync}" -eq 0 ]]; then
36813675
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\"."
36823676
prune_marker="/var/lib/reth/minimal-node"
@@ -3692,7 +3686,6 @@ prune-history() {
36923686
echo "Aborting."
36933687
exit 1
36943688
fi
3695-
min_ver="v3.0.12"
36963689
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."
36973690
prune_marker=""
36983691
;;
@@ -3703,7 +3696,6 @@ prune-history() {
37033696
echo "Aborting."
37043697
exit 1
37053698
fi
3706-
min_ver="v1.0.0"
37073699
if [[ "${target}" = "pre-merge" ]]; then
37083700
extra_msg="Ethrex always expires pre-merge history. This command will have no effect."
37093701
prune_marker="/var/lib/ethrex/minimal-node"
@@ -3719,8 +3711,6 @@ prune-history() {
37193711
;;
37203712
esac
37213713

3722-
echo "${target} history expiry requires ${client} ${min_ver} or later."
3723-
echo
37243714
if [[ -n "${extra_msg:-}" ]]; then
37253715
echo -e "${extra_msg}"
37263716
echo

0 commit comments

Comments
 (0)