Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

contractcourt: properly bump justice transactions #10237

morehouse started this conversation in Ideas
Discussion options

Currently justice transactions use a confirmation target of 2, which should usually get them confirmed quickly. But if we get unlucky and mempool fee rates rise after we've created the justice transactions, the justice transactions can get stuck in the mempool for a long time, potentially long enough for the counterparty to claim their channel balance and escape justice.

Implementation

Ideally we'd be able to leverage the new sweeper to automatically bump fees every block. The problem is that we do need to maintain the custom logic to split the justice transaction into pinnable (i.e. HTLC claims) and non-pinnable (i.e. balance claim) groups after a few blocks delay, and we need to make sure that the non-pinnable group doesn't get any pinnable outputs from other channels grouped with it.

I think @yyforyongyu was working on "sweeper groups" at some point, which seems useful here to prevent aggregation.

You must be logged in to vote

Replies: 1 comment

Comment options

Converting to a discussion. Issue can be created when development is planned.

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Ideas
Labels
enhancement Improvements to existing features / behaviour security General label for issues/PRs related to the security of the software contracts utxo sweeping
2 participants
Converted from issue

This discussion was converted from issue #9426 on September 24, 2025 00:56.

AltStyle によって変換されたページ (->オリジナル) /