Skip to content

JIT: compare the opening fee to the payment amount - #11053

Open
ecdsa wants to merge 1 commit into
masterfrom
jit_opening_fee
Open

ecdsa wants to merge 1 commit into
masterfrom
jit_opening_fee

Conversation

@ecdsa

@ecdsa ecdsa commented Oct 17, 2026

Copy link
Copy Markdown
Member

The client compared the opening fee of a just-in-time channel to funding_sat, which is chosen by the LSP. By opening a channel at least 10 times larger than the payment, the LSP could charge almost the whole payment as opening fee.

The opening fee is now compared to total_msat when the htlc arrives. For trampoline, this check also runs with the inner onion, whose total_msat is set by the sender.

The client compared the opening fee of a just-in-time channel to
funding_sat, which is chosen by the LSP. By opening a channel at
least 10 times larger than the payment, the LSP could charge almost
the whole payment as opening fee.

The opening fee is now compared to total_msat when the htlc arrives.
For trampoline, this check also runs with the inner onion, whose
total_msat is set by the sender.
@ecdsa
ecdsa marked this pull request as ready for review October 17, 2026 13:25
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.

1 participant