1
0

Fix CTNs in should_be_closed_due_to_expiring_htlcs (fixes #7906).

Also fix sending too many fee updates.
Rename lnworker.on_channel_update, that name was misleading.
This commit is contained in:
ThomasV
2022-08-02 18:00:33 +02:00
parent 0c8a828704
commit a5965933d2
5 changed files with 9 additions and 9 deletions

View File

@@ -1896,7 +1896,7 @@ class Peer(Logger):
self.logger.info("FEES HAVE FALLEN")
elif feerate_per_kw > chan_fee * 2:
self.logger.info("FEES HAVE RISEN")
elif chan.get_oldest_unrevoked_ctn(REMOTE) == 0:
elif chan.get_latest_ctn(REMOTE) == 0:
# workaround eclair issue https://github.com/ACINQ/eclair/issues/1730
self.logger.info("updating fee to bump remote ctn")
if feerate_per_kw == chan_fee: