Skip to content

BOLT 4: clarify final onion payload must always contain total_msat - #1355

Merged
Roasbeef merged 1 commit into
lightning:masterfrom
SomberNight:202608_bolt04_total_msat_assumed
Sep 21, 2026
Merged

Roasbeef merged 1 commit into
lightning:masterfrom
SomberNight:202608_bolt04_total_msat_assumed

Conversation

@SomberNight

Copy link
Copy Markdown
Contributor

Now that option_payment_secret is assumed, the total_msat field must always be present for final onions.

Either the payment_data TLV or the total_amount_msat TLV must be present, which implies total_msat being present.

Now that `option_payment_secret` is assumed [0], the `total_msat` field
must always be present for final onions.

[0]: lightning@872c6ec
@t-bast t-bast mentioned this pull request Aug 28, 2026
15 of 22 tasks

@t-bast t-bast left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

ACK, agreed that we can get rid of this legacy case now.

@Roasbeef Roasbeef left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

LGTM

@Roasbeef
Roasbeef merged commit 1aadb71 into lightning:master Sep 21, 2026
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.

4 participants