Skip to content
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

Use bumpforceclose RPC to also bump remote commit fees #2744

Merged
merged 2 commits into from Sep 22, 2023

Conversation

t-bast
Copy link
Member

@t-bast t-bast commented Sep 15, 2023

This is a follow-up for #2743

When manually bumping the fees of a force-close (to help wallet users recover their funds more quickly), we also want to handle the case where they were the one publishing the commit tx and bump their remote commit. It can also be helpful for node operators who set eclair.on-chain-fees.spend-anchor-without-htlcs = false and want to recover their liquidity on a case-by-case basis.

We also fix two issues in #2743:

  • we weren't persisting the manual fee-bump to the DB: if the node was restarted, we wouldn't keep on bumping the fees
  • we didn't have an ordering on ConfirmationPriority, which means fast wasn't replacing a previous medium or slow

pm47
pm47 previously approved these changes Sep 19, 2023
We want to be able to bump a force-close regardless of which commitment
was published. If the remote commitment is in our mempool, we will use
our anchor on that commit tx to bump the fees.
By attaching an underlying `Int` specifically used for comparison.
@t-bast
Copy link
Member Author

t-bast commented Sep 21, 2023

Rebased.

@t-bast t-bast merged commit d4c502a into master Sep 22, 2023
1 check passed
@t-bast t-bast deleted the bump-remote-commit branch September 22, 2023 15:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants