Browse Source

Merge #1202: Don't crash in wallet_display() with no blockchain source

9b15218 Don't crash in wallet_display() with no blockchain source (Kristaps Kaupe)
master
Adam Gibson 4 years ago
parent
commit
fdfe18fe50
No known key found for this signature in database
GPG Key ID: 141001A1AF77F20B
  1. 2
      jmclient/jmclient/wallet_utils.py

2
jmclient/jmclient/wallet_utils.py

@ -518,7 +518,7 @@ def wallet_display(wallet_service, showprivkey, displayall=False,
# This only applies to the external branch, because it only applies to addresses
# displayed for user deposit.
# It also does not apply to fidelity bond addresses which are created manually.
if address_type == BaseWallet.ADDRESS_TYPE_EXTERNAL:
if address_type == BaseWallet.ADDRESS_TYPE_EXTERNAL and wallet_service.bci is not None:
wallet_service.bci.import_addresses(gap_addrs,
wallet_service.get_wallet_name())
wallet_service.set_next_index(m, address_type, unused_index)

Loading…
Cancel
Save