mirror of
https://github.com/LBRYFoundation/LBRY-Vault.git
synced 2025-08-23 17:47:31 +00:00
follow-up previous commit
This commit is contained in:
parent
2a7b5081c9
commit
471fdd1d97
1 changed files with 3 additions and 1 deletions
|
@ -706,12 +706,14 @@ class LNWallet(LNWorker):
|
||||||
if not chan:
|
if not chan:
|
||||||
return
|
return
|
||||||
|
|
||||||
|
# fixme: this is wasteful
|
||||||
|
self.channel_timestamps[bh2u(chan.channel_id)] = funding_txid, funding_height.height, funding_height.timestamp, closing_txid, closing_height.height, closing_height.timestamp
|
||||||
|
|
||||||
# remove from channel_db
|
# remove from channel_db
|
||||||
if chan.short_channel_id is not None:
|
if chan.short_channel_id is not None:
|
||||||
self.channel_db.remove_channel(chan.short_channel_id)
|
self.channel_db.remove_channel(chan.short_channel_id)
|
||||||
|
|
||||||
if chan.get_state() < channel_states.CLOSED:
|
if chan.get_state() < channel_states.CLOSED:
|
||||||
self.channel_timestamps[bh2u(chan.channel_id)] = funding_txid, funding_height.height, funding_height.timestamp, closing_txid, closing_height.height, closing_height.timestamp
|
|
||||||
chan.set_state(channel_states.CLOSED)
|
chan.set_state(channel_states.CLOSED)
|
||||||
|
|
||||||
if chan.get_state() == channel_states.CLOSED and not keep_watching:
|
if chan.get_state() == channel_states.CLOSED and not keep_watching:
|
||||||
|
|
Loading…
Add table
Reference in a new issue