De-emphasize QuickSync

This commit is contained in:
Taylor Helsper 2021-11-10 18:12:09 -06:00
parent fd9024ae20
commit 52d81d276a
3 changed files with 56 additions and 49 deletions

View File

@ -191,6 +191,7 @@ def page_status():
#"startup_status_log": startup_status_log, #"startup_status_log": startup_status_log,
"startup_status": get_service_status_basic_text("mynode"), "startup_status": get_service_status_basic_text("mynode"),
"startup_status_color": get_service_status_color("mynode"), "startup_status_color": get_service_status_color("mynode"),
"is_quicksync_enabled": is_quicksync_enabled(),
#"quicksync_status_log": quicksync_status_log, #"quicksync_status_log": quicksync_status_log,
"quicksync_status": quicksync_status, "quicksync_status": quicksync_status,
"quicksync_status_color": quicksync_status_color, "quicksync_status_color": quicksync_status_color,

View File

@ -710,55 +710,6 @@
</div> </div>
<div class="settings_block">
<a id="quicksync"></a>
<div class="settings_block_header">QuickSync</div>
<div class="settings_block_subheader">Toggle QuickSync</div>
{% if is_quicksync_disabled %}
Enabling QuickSync will help speed up syncing only during the initial block download period. It will also take additional drive space and is not recommeded if using an SSD.
<br/>
<a href="/settings/toggle-quicksync" class="ui-button ui-widget ui-corner-all settings_button">Enable QuickSync</a>
{% else %}
Disabling QuickSync will remove the QuickSync files and stop the process. This may save significant disk space.
<br/>
<a href="/settings/toggle-quicksync" class="ui-button ui-widget ui-corner-all settings_button">Disable QuickSync</a>
{% endif %}
{% if not is_quicksync_disabled %}
<div class="divider"></div>
<div class="settings_block_subheader">Restart QuickSync</div>
This will reset Bitcoin and redownload the blockchain via QuickSync.
<br/>
<button id="restart-quicksync" class="ui-button ui-widget ui-corner-all settings_button">Restart QuickSync</button>
<div class="divider"></div>
<div class="settings_block_subheader">QuickSync Rates</div>
You can control the background upload and download rates for QuickSync. This helps the myNode network.
<br/>
<form action="/settings/quicksync_rates" method="POST">
<p><b>Download Rate</b></p>
<div id="download-slider">
<div id="download-handle" class="quicksync-handle ui-slider-handle "></div>
</div>
<input type="hidden" id="download-rate" name="download-rate"/>
<p><b>Upload Rate</b></p>
<div id="upload-slider">
<div id="upload-handle" class="quicksync-handle ui-slider-handle"></div>
</div>
<input type="hidden" id="upload-rate" name="upload-rate"/>
<br/>
<input type="submit" id="quicksync_rates_submit" value="Save" class="ui-button ui-widget ui-corner-all settings_button"/>
</form>
{% endif %}
</div>
<div class="settings_block"> <div class="settings_block">
<a id="bitcoin"></a> <a id="bitcoin"></a>
<div class="settings_block_header">Bitcoin</div> <div class="settings_block_header">Bitcoin</div>
@ -911,6 +862,7 @@
</div> </div>
<div class="settings_block"> <div class="settings_block">
<a id="services"></a> <a id="services"></a>
<div class="settings_block_header">Services</div> <div class="settings_block_header">Services</div>
@ -926,6 +878,7 @@
</div> </div>
<div class="settings_block"> <div class="settings_block">
<a id="docker"></a> <a id="docker"></a>
<div class="settings_block_header">Docker</div> <div class="settings_block_header">Docker</div>
@ -936,6 +889,56 @@
<button id="reset_docker_button" class="ui-button ui-widget ui-corner-all settings_button">Reset Docker</button> <button id="reset_docker_button" class="ui-button ui-widget ui-corner-all settings_button">Reset Docker</button>
</div> </div>
<div class="settings_block">
<a id="quicksync"></a>
<div class="settings_block_header">QuickSync</div>
<div class="settings_block_subheader">Toggle QuickSync</div>
{% if is_quicksync_disabled %}
Enabling QuickSync will help speed up syncing only during the initial block download period by downloading a pre-validated copy of the blockchain. It is no longer recommended.
<br/>
<a href="/settings/toggle-quicksync" class="ui-button ui-widget ui-corner-all settings_button">Enable QuickSync</a>
{% else %}
Disabling QuickSync will remove the QuickSync files and stop the process. This may save significant disk space.
<br/>
<a href="/settings/toggle-quicksync" class="ui-button ui-widget ui-corner-all settings_button">Disable QuickSync</a>
{% endif %}
{% if not is_quicksync_disabled %}
<div class="divider"></div>
<div class="settings_block_subheader">Restart QuickSync</div>
This will reset Bitcoin and redownload the blockchain via QuickSync.
<br/>
<button id="restart-quicksync" class="ui-button ui-widget ui-corner-all settings_button">Restart QuickSync</button>
<div class="divider"></div>
<div class="settings_block_subheader">QuickSync Rates</div>
You can control the background upload and download rates for QuickSync. This helps the myNode network.
<br/>
<form action="/settings/quicksync_rates" method="POST">
<p><b>Download Rate</b></p>
<div id="download-slider">
<div id="download-handle" class="quicksync-handle ui-slider-handle "></div>
</div>
<input type="hidden" id="download-rate" name="download-rate"/>
<p><b>Upload Rate</b></p>
<div id="upload-slider">
<div id="upload-handle" class="quicksync-handle ui-slider-handle"></div>
</div>
<input type="hidden" id="upload-rate" name="upload-rate"/>
<br/>
<input type="submit" id="quicksync_rates_submit" value="Save" class="ui-button ui-widget ui-corner-all settings_button"/>
</form>
{% endif %}
</div>
<div class="settings_block"> <div class="settings_block">
<a id="clone_tool"></a> <a id="clone_tool"></a>
<div class="settings_block_header">Clone Tool</div> <div class="settings_block_header">Clone Tool</div>
@ -946,6 +949,7 @@
<a href="/settings/open-clone-tool" class="ui-button ui-widget ui-corner-all settings_button">Open Clone Tool</a> <a href="/settings/open-clone-tool" class="ui-button ui-widget ui-corner-all settings_button">Open Clone Tool</a>
</div> </div>
<div class="settings_block"> <div class="settings_block">
<a id="advanced"></a> <a id="advanced"></a>
<div class="settings_block_header">Advanced</div> <div class="settings_block_header">Advanced</div>

View File

@ -110,6 +110,7 @@
<div id="startup_status" style='text-align: left; font-size: 12px; width: 800px; display: none;'><pre>{{startup_status_log}}</pre></div> <div id="startup_status" style='text-align: left; font-size: 12px; width: 800px; display: none;'><pre>{{startup_status_log}}</pre></div>
<div class="divider"></div> <div class="divider"></div>
{% if is_quicksync_enabled %}
<div class="settings_block_subheader">QuickSync Status</div> <div class="settings_block_subheader">QuickSync Status</div>
<div class="settings_block_subheader_status"> <div class="settings_block_subheader_status">
<div class="settings_block_subheader_status_icon {{ quicksync_status_color }}"></div> <div class="settings_block_subheader_status_icon {{ quicksync_status_color }}"></div>
@ -118,6 +119,7 @@
<button id="show_quicksync_status" onclick="showLog('quicksync')" class="ui-button ui-widget ui-corner-all settings_button_small">Show Log</button> <button id="show_quicksync_status" onclick="showLog('quicksync')" class="ui-button ui-widget ui-corner-all settings_button_small">Show Log</button>
<div id="quicksync_status" style='text-align: left; font-size: 12px; width: 800px; display: none;'><pre>{{quicksync_status_log}}</pre></div> <div id="quicksync_status" style='text-align: left; font-size: 12px; width: 800px; display: none;'><pre>{{quicksync_status_log}}</pre></div>
<div class="divider"></div> <div class="divider"></div>
{% endif %}
<div class="settings_block_subheader">Tor Status</div> <div class="settings_block_subheader">Tor Status</div>
<div class="settings_block_subheader_status"> <div class="settings_block_subheader_status">