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

Trampoline fast fail #1727

Merged
merged 9 commits into from
Mar 10, 2021
Merged

Trampoline fast fail #1727

merged 9 commits into from
Mar 10, 2021

Conversation

akumaigorodski
Copy link
Contributor

Fail relayed trampoline payment if we see that payloadOut.outgoingCltv is below chain height. It's not our problem if it is but it makes sense to not risk our funds for a payment which will be failed by rational receivers.

Copy link
Member

@t-bast t-bast left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That's a small enough change, definitely worth it 👍

Copy link
Member

@t-bast t-bast left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@t-bast t-bast merged commit 6364ae3 into ACINQ:master Mar 10, 2021
tompro pushed a commit to tompro/eclair that referenced this pull request Mar 21, 2021
When we receive a trampoline payment asking us to relay with an
expiry that is already below the current chain height, we know that
this payment will fail when it reaches the next trampoline node.

Instead of waiting for the next trampoline node to reject it, we reject
it immediately.
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