-
Notifications
You must be signed in to change notification settings - Fork 2.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cancel back outgoing dust htlcs before commitment is confirmed. #9068
base: master
Are you sure you want to change the base?
Cancel back outgoing dust htlcs before commitment is confirmed. #9068
Commits on Oct 17, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 69c2435 - Browse repository at this point
Copy the full SHA 69c2435View commit details -
contratcourt: refactor resolving htlc logic
Refactor the part where we are failing back the incoming htlc when the channel of the corresponding outgoing htlc is force closed.
Configuration menu - View commit details
-
Copy full SHA for 2d7fd28 - Browse repository at this point
Copy the full SHA 2d7fd28View commit details -
contractcourt: enhance chainAction type
We distinguish between dangling and dust htlcs. This does not change any logic but only introduces new types to later act on them differently when we begin to fail dust htlcs earlier in a later commit.
Configuration menu - View commit details
-
Copy full SHA for 23b3516 - Browse repository at this point
Copy the full SHA 23b3516View commit details -
Configuration menu - View commit details
-
Copy full SHA for c97960a - Browse repository at this point
Copy the full SHA c97960aView commit details -
contractcourt: Cancel dust htlcs prematurely
We will now cancel dust htlcs on the local/remote commits after we decided to go onchain. This can be done because dust cannot be enforced onchain and therefore there is no way to also reveil the preimage onchain.
Configuration menu - View commit details
-
Copy full SHA for f4a85b6 - Browse repository at this point
Copy the full SHA f4a85b6View commit details -
contratcourt: dont consider dust htlc for anchor sweep
Now that we cancel dust htlcs prematurely even before the commitment tx is confirmed we don't consider dust htlcs when creating the cpfp transaction.
Configuration menu - View commit details
-
Copy full SHA for 3109694 - Browse repository at this point
Copy the full SHA 3109694View commit details -
itest: adopt itests for the new behavior
Now outgoing dust-htlcs are canceled back before the commitment is confirmed onchain.
Configuration menu - View commit details
-
Copy full SHA for 7fb61e6 - Browse repository at this point
Copy the full SHA 7fb61e6View commit details -
Configuration menu - View commit details
-
Copy full SHA for e25afc2 - Browse repository at this point
Copy the full SHA e25afc2View commit details