Browse Source

fix: test short_channel_id before removing from channel_db

dependabot/pip/contrib/deterministic-build/ecdsa-0.13.3
ThomasV 6 years ago
parent
commit
d9813540ac
  1. 1
      electrum/lnworker.py

1
electrum/lnworker.py

@ -320,6 +320,7 @@ class LNWorker(PrintError):
self.on_channels_updated()
self.network.trigger_callback('channel', chan)
# remove from channel_db
if chan.short_channel_id is not None:
self.channel_db.remove_channel(chan.short_channel_id)
# detect who closed
if closing_txid == chan.local_commitment.txid():

Loading…
Cancel
Save