1
0
Files
electrum/electrum
SomberNight f8c574b699 wallet: (fix) get_receiving_address must always return an addr
- also, disallow deleting last address from an imported wallet (fixes #3254, fixes #4833)
- also, set LNBackups.sweep_address lazily, as during fresh wallet creation
  there are no addresses in the wallet at that point yet! see trace below.

Traceback (most recent call last):
  [...]
  File "...\electrum\electrum\tests\test_commands.py", line 112, in test_export_private_key_deterministic
    wallet = restore_wallet_from_text('bitter grass shiver impose acquire brush forget axis eager alone wine silver',
  File "...\electrum\electrum\wallet.py", line 2575, in restore_wallet_from_text
    wallet = Wallet(db, storage, config=config)
  File "...\electrum\electrum\wallet.py", line 2502, in __new__
    wallet = WalletClass(db, storage, config=config)
  File "...\electrum\electrum\wallet.py", line 2346, in __init__
    Deterministic_Wallet.__init__(self, db, storage, config=config)
  File "...\electrum\electrum\wallet.py", line 2147, in __init__
    Abstract_Wallet.__init__(self, db, storage, config=config)
  File "...\electrum\electrum\wallet.py", line 261, in __init__
    self.lnbackups = LNBackups(self)
  File "...\electrum\electrum\lnworker.py", line 1401, in __init__
    self.sweep_address = wallet.get_receiving_address()
  File "...\electrum\electrum\wallet.py", line 1498, in wrapper
    addr = func(self, *args, **kwargs)
  File "...\electrum\electrum\wallet.py", line 1520, in get_receiving_address
    raise Exception("no receiving addresses in wallet?!")
Exception: no receiving addresses in wallet?!
2020-05-22 16:25:33 +02:00
..
2019-09-05 11:45:28 +02:00
2020-02-10 17:45:23 +01:00
2020-05-03 03:08:28 +00:00
2019-07-21 13:13:51 +02:00
2020-04-11 12:02:38 +02:00
2020-05-06 12:58:55 +02:00
2020-05-05 09:23:48 +02:00
2020-05-05 09:23:48 +02:00
2020-05-05 09:23:48 +02:00
2020-05-20 13:49:44 +02:00
2020-02-29 00:20:11 +01:00
2019-02-11 20:21:24 +01:00
2019-12-26 23:47:32 +07:00
2020-05-13 15:13:09 +02:00
2020-04-24 15:32:05 +02:00