Skip to content

Drop the required channel_update in failure onions - #1173

Merged
t-bast merged 1 commit into
lightning:masterfrom
TheBlueMatt:2024-06-dont-look-at-updates-in-onions
Jul 11, 2024
Merged

t-bast merged 1 commit into
lightning:masterfrom
TheBlueMatt:2024-06-dont-look-at-updates-in-onions

Conversation

@TheBlueMatt

Copy link
Copy Markdown
Collaborator

As noted previously, channel_updates in the onion failure packets are massive gaping fingerprintign vulnerabilities - if a node applies them in a publicly-visible way the err'ing node can easily identify the sender of an HTLC.

While the updates are still arguably marginally useful for nodes to use in their pathfinding local to retires of the same payment, this too will eventually become an issue with PTLCs. Further, we shouldn't be letting nodes get away with delaying payments by failing to announce the latest channel parameters or enforcing new parameters too soon, so treating the node as having indicated insufficient liquidity (or other general failure) is appropriate in the general case.

Thus, here, we begin phasing out the channel_update field, requiring nodes ignore it outside of the current payment and making it formally optional (though nodes have been doing this for some time due to various bugs).

Because some nodes may want to use update data on mobile when they have stale gossip data, it is left optional.

An alternative to #1163 for those that want to use the updates.

@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 3344779

@t-bast t-bast mentioned this pull request Jun 17, 2024
9 of 22 tasks
Comment thread 04-onion-routing.md Resolved

@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 🍁

(pending typo fix)

As noted previously, `channel_update`s in the onion failure packets
are massive gaping fingerprintign vulnerabilities - if a node
applies them in a publicly-visible way the err'ing node can easily
identify the sender of an HTLC.

While the updates are still arguably marginally useful for nodes to
use in their pathfinding local to retires of the same payment, this
too will eventually become an issue with PTLCs. Further, we
shouldn't be letting nodes get away with delaying payments by
failing to announce the latest channel parameters or enforcing new
parameters too soon, so treating the node as having indicated
insufficient liquidity (or other general failure) is appropriate
in the general case.

Thus, here, we begin phasing out the `channel_update` field,
requiring nodes ignore it outside of the current payment and making
it formally optional (though nodes have been doing this for some
time due to various bugs).

Because some nodes may want to use update data on mobile when they
have stale gossip data, it is left optional.
@TheBlueMatt
TheBlueMatt force-pushed the 2024-06-dont-look-at-updates-in-onions branch from 3344779 to 9497394 Compare July 10, 2024 19:24
@TheBlueMatt

Copy link
Copy Markdown
Collaborator Author

Fixed the typo.

@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 9497394

@t-bast
t-bast merged commit 93b7ee0 into lightning:master Jul 11, 2024
tankyleo added a commit to tankyleo/rust-lightning that referenced this pull request Oct 1, 2024
tankyleo added a commit to tankyleo/rust-lightning that referenced this pull request Oct 4, 2024
tankyleo added a commit to tankyleo/rust-lightning that referenced this pull request Oct 5, 2024
f321x added a commit to f321x/electrum-fork that referenced this pull request Jul 30, 2026
The lightning spec changed so that htlc failures don't have to include
a channel_update message anymore (lightning/bolts#1173).
We shouldn't blacklist a channel for not including a channel_update
if the error code signals a liquidity issue (TEMPORARY_CHANNEL_FAILURE), instead
it is sufficient to just record the liquidity hint and try with a smaller
part.
f321x added a commit to f321x/electrum-fork that referenced this pull request Jul 30, 2026
The lightning spec changed so that htlc failures don't have to include
a channel_update message anymore (lightning/bolts#1173).
We shouldn't blacklist a channel for not including a channel_update
if the error code signals a liquidity issue (TEMPORARY_CHANNEL_FAILURE), instead
it is sufficient to just record the liquidity hint and try with a smaller
part.
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.

3 participants