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

Serialize blinded Trampoline hops #3007

Open
wants to merge 8 commits into
base: main
Choose a base branch
from

Conversation

arik-so
Copy link
Contributor

@arik-so arik-so commented Apr 19, 2024

Add BlindedForward and BlindedReceive variants to OutboundTrampolinePayload.

@codecov-commenter
Copy link

codecov-commenter commented Apr 19, 2024

Codecov Report

Attention: Patch coverage is 94.36620% with 4 lines in your changes missing coverage. Please review.

Project coverage is 89.63%. Comparing base (66fb520) to head (b9f002e).

Files with missing lines Patch % Lines
lightning/src/ln/msgs.rs 94.36% 0 Missing and 4 partials ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #3007      +/-   ##
==========================================
- Coverage   89.65%   89.63%   -0.02%     
==========================================
  Files         126      126              
  Lines      102676   102747      +71     
  Branches   102676   102747      +71     
==========================================
+ Hits        92054    92101      +47     
- Misses       7905     7917      +12     
- Partials     2717     2729      +12     
Flag Coverage Δ
89.63% <94.36%> (+0.05%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

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

Copy link
Collaborator

@TheBlueMatt TheBlueMatt left a comment

Choose a reason for hiding this comment

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

Similarly, why is this draft? What's it waiting on?

@@ -1767,6 +1768,21 @@ mod fuzzy_internal_msgs {
outgoing_cltv_value: u32,
/// The node id to which the trampoline node must find a route
outgoing_node_id: PublicKey,
},
#[allow(unused)]
BlindedForward {
Copy link
Collaborator

Choose a reason for hiding this comment

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

Can we get some docs, what does BlindedForward and BlindedReceive actually mean?

Copy link
Collaborator

Choose a reason for hiding this comment

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

Any update here?

@arik-so arik-so mentioned this pull request Apr 22, 2024
29 tasks
@arik-so arik-so force-pushed the arik/trampoline/2024-04-trampoline-blinded-hop-serialization branch from 67ecd63 to 4b631d6 Compare June 17, 2024 08:44
@TheBlueMatt
Copy link
Collaborator

CI is quite sad.

@arik-so arik-so force-pushed the arik/trampoline/2024-04-trampoline-blinded-hop-serialization branch 2 times, most recently from e3c86f7 to 4c785b5 Compare June 20, 2024 15:41
@arik-so arik-so marked this pull request as ready for review June 24, 2024 17:27
@TheBlueMatt
Copy link
Collaborator

Feel free to squash before any reviewers take a big look.

@arik-so arik-so force-pushed the arik/trampoline/2024-04-trampoline-blinded-hop-serialization branch from 4c785b5 to 16d1ba1 Compare June 26, 2024 12:55
/// List of blinded path options the last trampoline hop may choose to route through.
payment_paths: Vec<BlindedPath>,
/// If applicable, features of the BOLT12 invoice being paid.
invoice_features: Option<Bolt12InvoiceFeatures>
Copy link
Collaborator

Choose a reason for hiding this comment

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

Are you sure this is supposed to be a Bolt12InvoiceFeatures and not a BlindedPathFeatures? I mean it makes sense just want to double-check.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

by BlindedPathFeatures do you mean BlindedHopFeatures?

@@ -1767,6 +1768,21 @@ mod fuzzy_internal_msgs {
outgoing_cltv_value: u32,
/// The node id to which the trampoline node must find a route
outgoing_node_id: PublicKey,
},
#[allow(unused)]
BlindedForward {
Copy link
Collaborator

Choose a reason for hiding this comment

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

Any update here?

@arik-so arik-so force-pushed the arik/trampoline/2024-04-trampoline-blinded-hop-serialization branch from 53b7f63 to b9f002e Compare September 22, 2024 14:07
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