mirror of
https://github.com/LBRYFoundation/LBRY-Vault.git
synced 2025-09-04 21:05:11 +00:00
fix: test short_channel_id before removing from channel_db
This commit is contained in:
parent
108a986ef0
commit
d9813540ac
1 changed files with 2 additions and 1 deletions
|
@ -320,7 +320,8 @@ class LNWorker(PrintError):
|
|||
self.on_channels_updated()
|
||||
self.network.trigger_callback('channel', chan)
|
||||
# remove from channel_db
|
||||
self.channel_db.remove_channel(chan.short_channel_id)
|
||||
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():
|
||||
self.print_error('we force closed', funding_outpoint)
|
||||
|
|
Loading…
Add table
Reference in a new issue