Skip to content

Commit

Permalink
Interim commit
Browse files Browse the repository at this point in the history
  • Loading branch information
singlatushar07 committed Aug 31, 2021
1 parent bf3bf22 commit d954d37
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 4 deletions.
12 changes: 9 additions & 3 deletions src/cryptoadvance/specter/server_endpoints/devices.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,13 +86,19 @@ def new_device_keys(device_type):
err = _("Failed to parse these xpubs") + ":\n" + "\n".join(xpub)
break
if not keys and not err:
if device_type in [DeviceTypes.BITCOINCORE, DeviceTypes.ELEMENTSCORE, DeviceTypes.BITCOINCORE_WATCHONLY]:
if device_type in [
DeviceTypes.BITCOINCORE,
DeviceTypes.ELEMENTSCORE,
DeviceTypes.BITCOINCORE_WATCHONLY,
]:
if not paths:
err = _("No paths were specified, please provide at least one.")
if err is None:
if existing_device:
if(device_type == DeviceTypes.BITCOINCORE_WATCHONLY):
device.setup_device(file_password, app.specter.wallet_manager)
if device_type == DeviceTypes.BITCOINCORE_WATCHONLY:
device.setup_device(
file_password, app.specter.wallet_manager
)
device.add_hot_wallet_keys(
mnemonic,
passphrase,
Expand Down
1 change: 1 addition & 0 deletions src/cryptoadvance/specter/server_endpoints/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,7 @@ def general():
continue
write_wallet(wallet)
app.specter.wallet_manager.update()
time.sleep(1)
try:
wallet_obj = app.specter.wallet_manager.get_by_alias(
wallet["alias"]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@
{% endif %}
{% if device.hot_wallet %}
<button id="{{ device.alias }}_hot_sign_btn" class="btn flex-item" style="width: 190px; margin: 15px auto;">
{% if device.device_type == "bitcoincore" %}
{% if device.device_type == "bitcoincore" or device.device_type == "bitcoincore_watchonly" %}
{% from "components/bitcoin_svg.jinja" import bitcoin_svg %}
{{ bitcoin_svg(chain, 16) }} {{ _("Sign with Bitcoin Core") }}
{% else %}
Expand Down

0 comments on commit d954d37

Please sign in to comment.