|
|
@ -609,7 +609,7 @@ class LNWallet(LNWorker): |
|
|
|
chan = self.channel_by_txo(funding_outpoint) |
|
|
|
if not chan: |
|
|
|
return |
|
|
|
self.logger.debug(f'on_channel_open {funding_outpoint}') |
|
|
|
#self.logger.debug(f'on_channel_open {funding_outpoint}') |
|
|
|
self.channel_timestamps[bh2u(chan.channel_id)] = funding_txid, funding_height.height, funding_height.timestamp, None, None, None |
|
|
|
self.storage.put('lightning_channel_timestamps', self.channel_timestamps) |
|
|
|
chan.set_funding_txo_spentness(False) |
|
|
@ -621,7 +621,7 @@ class LNWallet(LNWorker): |
|
|
|
chan = self.channel_by_txo(funding_outpoint) |
|
|
|
if not chan: |
|
|
|
return |
|
|
|
self.logger.debug(f'on_channel_closed {funding_outpoint}') |
|
|
|
#self.logger.debug(f'on_channel_closed {funding_outpoint}') |
|
|
|
self.channel_timestamps[bh2u(chan.channel_id)] = funding_txid, funding_height.height, funding_height.timestamp, closing_txid, closing_height.height, closing_height.timestamp |
|
|
|
self.storage.put('lightning_channel_timestamps', self.channel_timestamps) |
|
|
|
chan.set_funding_txo_spentness(True) |
|
|
|