Remove rescan chain option since it is getting deprecated in favor of RPC

This commit is contained in:
Taylor Helsper 2022-04-25 22:31:32 -05:00
parent 4677f6ce14
commit 86235342d4
2 changed files with 2 additions and 25 deletions

View File

@ -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()

View File

@ -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 @@
<div class="divider"></div>
<div class="settings_block_subheader">Rescan Blockchain</div>
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
<div class="settings_block_subheader">Reindex Blockchain</div>
Advanced: If you are having issues parsing the Bitcoin blockchain or blocks cannot be found, please try reindexing. This will
take a long time.
<br/>
<button id="rescan-blockchain" class="ui-button ui-widget ui-corner-all settings_button">Rescan Blockchain</button>
<button id="reindex-blockchain" class="ui-button ui-widget ui-corner-all settings_button">Reindex Blockchain</button>
</div>