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

@@ -19,7 +19,7 @@ class HTLCManager:
'locked_in': {}, # "side who offered htlc" -> action -> htlc_id -> whose ctx -> ctn
'settles': {}, # "side who offered htlc" -> action -> htlc_id -> whose ctx -> ctn
'fails': {}, # "side who offered htlc" -> action -> htlc_id -> whose ctx -> ctn
'fee_updates': {}, # "side who initiated fee update" -> action -> list of FeeUpdates
'fee_updates': {}, # "side who initiated fee update" -> index -> list of FeeUpdates
'revack_pending': False,
'next_htlc_id': 0,
'ctn': -1, # oldest unrevoked ctx of sub