Uh oh!
There was an error while loading. Please reload this page.
Rename BOLT 12 message paths fields and methods - #3118
Conversation
valentinewallace
commented
Jun 12, 2024
@jkczyz did you want to rename |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@## main #3118 +/- ##
==========================================
- Coverage 86.09% 85.86% -0.23%
==========================================
Files 156 159 +3 Lines 103623 104310 +687 Branches 103623 104310 +687 ==========================================
+ Hits 89211 89568 +357 - Misses 11895 12239 +344 + Partials 2517 2503 -14
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
TheBlueMatt
commented
Jun 13, 2024
Needs rebase. |
554ad48 to
1bfd19eComparevalentinewallace
commented
Jun 13, 2024
Rebased |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
96bac66 to
3ad2e13CompareTheBlueMatt
commented
Jun 25, 2024
ISTM a lot of this confusion comes because we have one |
jkczyz
commented
Jun 26, 2024
Hmmm... would be somewhat annoying to serialize since the payment paths are written in two TLVs. |
TheBlueMatt
commented
Jun 28, 2024
Wait, why? We can just have a wrapper and nothing else, the code wouldn't have to change? |
jkczyz
commented
Jun 28, 2024
I guess the wrapper just wouldn't implement I'm not sure making one really is solving much, though. Blinded payment paths are only used in one place. All the new blinded paths fields are / will be for messages. |
TheBlueMatt
commented
Jul 8, 2024
Hmm? The wrappers would presumably implement the same thing that the current
That's fair, its somewhat orthogonal to this PR specifically, but the current code has three methods that all return a |
Uh oh!
There was an error while loading. Please reload this page.
| features: Bolt12InvoiceFeatures, | ||
| signing_pubkey: PublicKey, | ||
| message_paths: Vec<BlindedPath>, | ||
| async_receive_paths: Vec<BlindedPath>, |
There was a problem hiding this comment.
I'm confused, async_receive_paths imply to me that these are payment paths, but the old name was message_paths, should it be like async_awoken_notify_message_paths or something more verbose?
There was a problem hiding this comment.
notify_online_message_paths? @jkczyz any thoughts?
There was a problem hiding this comment.
Could you remind me what message will be sent over this path and who is sending it?
It's in the static invoice that the mailbox sends back to the payer. So the path is to the recipient through their mailbox, IIUC? notify_online seems to align more with the reply path that would be used?
jkczyz
commented
Jul 8, 2024
Payment paths are written in invoices as two separate TLVs, so having it implement |
3ad2e13 to
7e8c307CompareTheBlueMatt
commented
Jul 16, 2024
Okay, then payment paths wouldn't implement |
TheBlueMatt
commented
Feb 19, 2026
@valentinewallace what's the status of this? Should it be closed? |
7e8c307 to
ce053a8Comparevalentinewallace
commented
Feb 23, 2026
I pushed an update just renaming |
Otherwise, Bolt12Invoice::message_paths and StaticInvoice::message_paths would have the same name but return completely different kinds of paths, which is inconsistent. Claude'd.
ce053a8 to
42ca4b7CompareUh oh!
There was an error while loading. Please reload this page.
From #3082 (comment).
Based on #3082.