From 86235342d4ef6f8ff34c8c74d15917054122ea2e Mon Sep 17 00:00:00 2001 From: Taylor Helsper Date: Mon, 25 Apr 2022 22:31:32 -0500 Subject: [PATCH] Remove rescan chain option since it is getting deprecated in favor of RPC --- rootfs/standard/var/www/mynode/settings.py | 9 --------- .../var/www/mynode/templates/settings.html | 18 ++---------------- 2 files changed, 2 insertions(+), 25 deletions(-) diff --git a/rootfs/standard/var/www/mynode/settings.py b/rootfs/standard/var/www/mynode/settings.py index 96648648..4fe0ec21 100644 --- a/rootfs/standard/var/www/mynode/settings.py +++ b/rootfs/standard/var/www/mynode/settings.py @@ -488,15 +488,6 @@ def reindex_blockchain_page(): t.start() return redirect("/settings") -@mynode_settings.route("/settings/rescan-blockchain") -def rescan_blockchain_page(): - check_logged_in() - os.system("echo 'BTCARGS=-rescan' > "+BITCOIN_ENV_FILE) - os.system("systemctl restart bitcoin") - t = Timer(30.0, reset_bitcoin_env_file) - t.start() - return redirect("/settings") - @mynode_settings.route("/settings/reset-docker") def reset_docker_page(): check_logged_in() diff --git a/rootfs/standard/var/www/mynode/templates/settings.html b/rootfs/standard/var/www/mynode/templates/settings.html index 46ddc256..5d127af3 100644 --- a/rootfs/standard/var/www/mynode/templates/settings.html +++ b/rootfs/standard/var/www/mynode/templates/settings.html @@ -151,18 +151,6 @@ okFunction) }); - $("#rescan-blockchain").on("click", function() { - // Enable electrs - var okFunction = function() { - window.location.href="/settings/rescan-blockchain" - } - openConfirmDialog("confirm-dialog", - "Rescan Bitcoin Blockchain", - "This will take a few hours. " + - "Would you still like to rescan the bitcoin blockchain?", - okFunction) - }); - $("#run-disk-benchmark").on("click", function() { $("#run-disk-benchmark").prop("disabled",true); $("#run-disk-benchmark-results").html("Loading..."); @@ -821,12 +809,10 @@
-
Rescan Blockchain
- Advanced: If you are having issues seeing transactions in your wallets, try re-scanning the blockchain. If you - are having issues parsing the Bitcoin blockchain or blocks cannot be found, please try reindexing. This will +
Reindex Blockchain
+ Advanced: If you are having issues parsing the Bitcoin blockchain or blocks cannot be found, please try reindexing. This will take a long time.
-