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

skip htlcs when forward_msat is missing #9

Merged
merged 1 commit into from
Nov 18, 2024

Conversation

JssDWt
Copy link
Collaborator

@JssDWt JssDWt commented Nov 18, 2024

Lightningd was crashing because the trampoline plugin failed to deserialize htlcs.

Plugin trampoline for htlc_accepted returned non-result response {"error":{"code":-32700,"data":null,"message":"missing field `forward_msat`"},"id":"cln:htlc_accepted#98","jsonrpc":"2.0"}

Turns out any field in the onion can be undefined: https://github.com/ElementsProject/lightning/blob/bc419b41a8cde74680b829fc0c74ca30d2ad9e9e/lightningd/peer_htlcs.c#L1116-L1140

So the only remaining field in the onion is made optional in this PR.
outgoing_cltv_value was removed, as it was not used.

Copy link

@dangeross dangeross left a comment

Choose a reason for hiding this comment

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

LGTM

@JssDWt JssDWt merged commit fa754ba into main Nov 18, 2024
11 checks passed
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