-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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/deserialize AMP struct in hop #7976
Serialize/deserialize AMP struct in hop #7976
Conversation
4d4dfb1
to
6ab9829
Compare
705be51
to
2d54fb0
Compare
i'm not sure @arshbot is around to review this anymore. can we get another review on this to move this forward? |
Can you rebase and update to the 0.18 release notes please? Then I can take a look. |
2d54fb0
to
d490115
Compare
@guggero ok. i have updated the PR accordingly. thank you. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, LGTM 🎉
The AMP struct in a hop was never being set when deserizlied. Also, the AMP TLV record was not being added when the hop was serialized. This sets the TLV record when serializing and correctly sets the AMP struct on the hop when that record is present. Co-authored-by: BitcoinCoderBob <90647227+BitcoinCoderBob@users.noreply.github.com> Co-authored-by: Tee8z <tee8z@protonmail.com>
d490115
to
4521894
Compare
@guggero i have updated the commit message to match that. thank you for the review. |
@guggero i believe this test that failed might actually be okay. it looks like it timed out. |
Yeah, it's a flake. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice addition! As mentioned in the description,
- Observe the amp_record is now set in the hops array when using listpayments
Can you update our itest to reflect this change? I'm thinking add one more check in testSendPaymentAMP
to assert that the created payment now does have this field, should be straightforward.
@w3irdrobot, remember to re-request review from reviewers when ready |
Important Auto Review SkippedAuto reviews are limited to the following labels: llm-review. Please add one of these labels to enable auto reviews. Please check the settings in the CodeRabbit UI or the To trigger a single review, invoke the Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (invoked as PR comments)
Additionally, you can add CodeRabbit Configration File (
|
Change Description
The AMP struct in a hop was never being set when deserizlied. Also, the AMP TLV record was not being added when the hop was serialized. This sets the TLV record when serializing and correctly sets the AMP struct on the hop when that record is present.
Steps to Test
amp_record
is now set in the hops array when usinglistpayments
Pull Request Checklist
Testing
Code Style and Documentation
[skip ci]
in the commit message for small changes.📝 Please see our Contribution Guidelines for further guidance.