Skip to content

Conversation

@arik-so
Copy link
Contributor

@arik-so arik-so commented Feb 3, 2025

This is a WIP that depends on #3386 and #3579.

@arik-so arik-so force-pushed the arik/trampoline/inbound-parsing branch 2 times, most recently from 098ccea to 8127bc5 Compare February 10, 2025 08:39
Forwarding Trampoline packets requires storing their shared secrets on
top of the outer onion's shared secrets, as well as referencing the
next hop by its node ID as opposed to by an SCID. We modify
PendingHTLCRouting to adequately represent this information.
@codecov
Copy link

codecov bot commented Feb 10, 2025

Codecov Report

❌ Patch coverage is 11.04651% with 153 lines in your changes missing coverage. Please review.
✅ Project coverage is 88.41%. Comparing base (098ccea) to head (63608c2).
⚠️ Report is 2263 commits behind head on main.

Files with missing lines Patch % Lines
lightning/src/ln/msgs.rs 1.96% 99 Missing and 1 partial ⚠️
lightning/src/ln/onion_payment.rs 11.76% 30 Missing ⚠️
lightning/src/ln/onion_utils.rs 0.00% 18 Missing ⚠️
lightning/src/ln/channelmanager.rs 72.22% 5 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #3585      +/-   ##
==========================================
- Coverage   88.42%   88.41%   -0.01%     
==========================================
  Files         149      149              
  Lines      115755   115925     +170     
  Branches   115755   115925     +170     
==========================================
+ Hits       102360   102499     +139     
- Misses      10884    10912      +28     
- Partials     2511     2514       +3     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

In order to move the Trampoline-specific data from the onion decryption
layer to the PendingHTLCRouting enum, we need to make the
NextPacketDetails more descriptive, which we do here by virtue of
converting the outbound_scid field into an enum than is more expressive
in its Trampoline variant.
@carlaKC
Copy link
Contributor

carlaKC commented Feb 12, 2026

Replaced with #4414.

@carlaKC carlaKC closed this Feb 12, 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.

2 participants