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

Automatically disable from_future_htlc when abused #2928

Merged
merged 2 commits into from
Oct 15, 2024

Conversation

t-bast
Copy link
Member

@t-bast t-bast commented Oct 14, 2024

When providing on-the-fly funding with the from_future_htlc payment type, the liquidity provider is paying mining fees for the funding transaction while trusting that the remote node will accept the HTLCs afterwards and thus pay a liquidity fees. If the remote node fails the HTLCs, the liquidity provider doesn't get paid. At that point it can disable the channel and try to actively double-spend it. When we detect such behavior, we immediately disable from_future_htlc to limit the exposure to liquidity griefing: it can then be re-enabled by using the enableFromFutureHtlc RPC, or will be automatically re-enabled if the remote node fulfills the HTLCs after a retry.

@t-bast t-bast requested a review from pm47 October 14, 2024 07:17
When providing on-the-fly funding with the `from_future_htlc` payment
type, the liquidity provider is paying mining fees for the funding
transaction while trusting that the remote node will accept the HTLCs
afterwards and thus pay a liquidity fees. If the remote node fails the
HTLCs, the liquidity provider doesn't get paid. At that point it can
disable the channel and try to actively double-spend it. When we detect
such behavior, we immediately disable `from_future_htlc` to limit the
exposure to liquidity griefing: it can then be re-enabled by using the
`enableFromFutureHtlc` RPC, or will be automatically re-enabled if the
remote node fulfills the HTLCs after a retry.
@t-bast t-bast force-pushed the disable-abused-from-future-htlc branch from 1c0ff0f to 1868f76 Compare October 15, 2024 02:37
And rename `disableFromFutureHtlc`.
@t-bast t-bast merged commit e09c830 into master Oct 15, 2024
1 check passed
@t-bast t-bast deleted the disable-abused-from-future-htlc branch October 15, 2024 09:18
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.

2 participants