Browse Source

lnworker: make sure to save new channel before we broadcast

see #6656
patch-4
SomberNight 4 years ago
parent
commit
c3fb79d412
No known key found for this signature in database GPG Key ID: B33B5F232C6271E9
  1. 1
      electrum/lnworker.py

1
electrum/lnworker.py

@ -828,6 +828,7 @@ class LNWallet(LNWorker):
channels_db[chan.channel_id.hex()] = chan.storage
for addr in chan.get_wallet_addresses_channel_might_want_reserved():
self.wallet.set_reserved_state_of_address(addr, reserved=True)
self.save_channel(chan)
self.wallet.save_backup()
def mktx_for_open_channel(self, *, coins: Sequence[PartialTxInput], funding_sat: int,

Loading…
Cancel
Save