Imrpove info on using electrum

This commit is contained in:
Taylor Helsper 2019-09-18 22:13:02 -05:00
parent 844fc0af13
commit 1d7f9c0cca
4 changed files with 64 additions and 6 deletions

View File

@ -1,3 +1,6 @@
=== v0.1.47 ===
- Improve Info on Using Electrum Server
=== v0.1.46 === === v0.1.46 ===
- Improve VPN consistency between device reboots - Improve VPN consistency between device reboots
- Tweak DNS settings - Tweak DNS settings

View File

@ -94,13 +94,17 @@ def electrum_server_page():
# Get Onion URLs # Get Onion URLs
electrs_onion_hostname = "..." electrs_onion_hostname = "..."
electrs_onion_password = "..."
electrs_onion_command = "..." electrs_onion_command = "..."
if os.path.isfile("/var/lib/tor/mynode/hostname"): if os.path.isfile("/var/lib/tor/mynode/hostname"):
with open("/var/lib/tor/mynode/hostname") as f: with open("/var/lib/tor/mynode/hostname") as f:
electrs_onion_hostname = f.read().strip() contents = f.read().split()
electrs_onion_hostname = contents[0]
electrs_onion_password = contents[1]
electrs_onion_command = "./electrum -1 -s {}:50002:s -p socks5:localhost:9050".format(electrs_onion_hostname) electrs_onion_command = "./electrum -1 -s {}:50002:s -p socks5:localhost:9050".format(electrs_onion_hostname)
else: else:
electrs_onion_hostname = "disabled" electrs_onion_hostname = "disabled"
electrs_onion_password = "disabled"
electrs_onion_command = "disabled" electrs_onion_command = "disabled"
# Load page # Load page
@ -115,6 +119,7 @@ def electrum_server_page():
"server_standard_port": server_standard_port, "server_standard_port": server_standard_port,
"server_secure_port": server_secure_port, "server_secure_port": server_secure_port,
"electrs_onion_hostname": electrs_onion_hostname, "electrs_onion_hostname": electrs_onion_hostname,
"electrs_onion_password": electrs_onion_password,
"electrs_onion_command": electrs_onion_command "electrs_onion_command": electrs_onion_command
} }
return render_template('electrum_server.html', **templateData) return render_template('electrum_server.html', **templateData)

View File

@ -47,7 +47,6 @@
</div> </div>
</div> </div>
<!--
<div class="divider" style="width: 800px;"></div> <div class="divider" style="width: 800px;"></div>
<div class="app_tile_row"> <div class="app_tile_row">
@ -55,11 +54,15 @@
<div class="info_tile_header">Electrum Tor Service</div> <div class="info_tile_header">Electrum Tor Service</div>
<div class="info_tile_contents">{% if not product_key_skipped %}Enabled{% else %}Premium Feature{% endif %}</div> <div class="info_tile_contents">{% if not product_key_skipped %}Enabled{% else %}Premium Feature{% endif %}</div>
</div> </div>
{% if not product_key_skipped %} {% if not product_key_skipped %}
<div class="info_tile"> <div class="info_tile">
<div class="info_tile_header">Electrum Tor Hostname</div> <div class="info_tile_header">Electrum Tor Hostname</div>
<div class="info_tile_contents">{{electrs_onion_hostname}}</div> <div class="info_tile_contents">{{electrs_onion_hostname}}</div>
</div> </div>
<div class="info_tile">
<div class="info_tile_header">Electrum Tor Password</div>
<div class="info_tile_contents">{{electrs_onion_password}}</div>
</div>
</div> </div>
<div class="app_tile_row"> <div class="app_tile_row">
<div class="info_tile"> <div class="info_tile">
@ -70,9 +73,56 @@
<div class="info_tile_header">Electrum Tor Help</div> <div class="info_tile_header">Electrum Tor Help</div>
<div class="info_tile_contents"><a href="http://docs.electrum.org/en/latest/tor.html" target="_blank">Link</a></div> <div class="info_tile_contents"><a href="http://docs.electrum.org/en/latest/tor.html" target="_blank">Link</a></div>
</div> </div>
{% endif %} {% endif %}
</div>
<br/><br/>
<div class="main_header">Using Electrum Wallets</div>
<div class="main_header_sub_text">
You can use your myNode to serve your mobile and PC-based Electrum clients securely and remotely!
</div>
<div class="app_tile_row">
<div class="app_tile_short">
<div class="app_status_icon"></div>
<div class="app_logo"><img class="app_logo_icon" src="{{ url_for('static', filename="images/electrum_logo.png")}}"/></div>
<div class="app_title">Local<br/>PC Wallet</div>
<div class="app_status"></div>
<div class="app_contents">
<a class="ui-button ui-widget ui-corner-all mynode_button" href="https://mynodebtc.com/guide/electrum_server" target="_blank">Guide</a>
</div>
</div>
<div class="app_tile_short">
<div class="app_status_icon"></div>
<div class="app_logo"><img class="app_logo_icon" src="{{ url_for('static', filename="images/electrum_logo.png")}}"/></div>
<div class="app_title">Local<br/>Mobile Wallets</div>
<div class="app_status"></div>
<div class="app_contents">
<a class="ui-button ui-widget ui-corner-all mynode_button" href="https://mynodebtc.com/guide/electrum_server" target="_blank">Guide</a>
</div>
</div>
<div class="app_tile_short">
<div class="app_status_icon"></div>
<div class="app_logo"><img class="app_logo_icon" src="{{ url_for('static', filename="images/tor.png")}}"/></div>
<div class="app_title">Remote<br/>PC Wallet</div>
<div class="app_status"></div>
<div class="app_contents">
<a class="ui-button ui-widget ui-corner-all mynode_button" href="https://mynodebtc.com/guide/electrum_server_tor" target="_blank">Guide</a>
</div>
</div>
<div class="app_tile_short">
<div class="app_status_icon"></div>
<div class="app_logo"><img class="app_logo_icon" src="{{ url_for('static', filename="images/tor.png")}}"/></div>
<div class="app_title">Remote<br/>Mobile Wallet</div>
<div class="app_status"></div>
<div class="app_contents">
<a class="ui-button ui-widget ui-corner-all mynode_button" href="https://mynodebtc.com/guide/electrum_server_tor" target="_blank">Guide</a>
</div>
</div>
</div> </div>
-->
{% include 'includes/footer.html' %} {% include 'includes/footer.html' %}
</body> </body>

View File

@ -236,7 +236,7 @@
{% endif %} {% endif %}
{% if wallet_exists and wallet_logged_in %} {% if wallet_exists and wallet_logged_in %}
<div class="main_header">Acess your Wallet</div> <div class="main_header">Access your Wallet</div>
<div class="main_header_sub_text"> <div class="main_header_sub_text">
There are numerous ways to access and manage your wallet. Choose any option below! There are numerous ways to access and manage your wallet. Choose any option below!
</div> </div>