-
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
lnwallet: correctly set UpdateAddHTLC.BlindingPoint on reload from disk #9023
lnwallet: correctly set UpdateAddHTLC.BlindingPoint on reload from disk #9023
Conversation
Important Review skippedAuto reviews are limited to specific labels. Labels to auto review (1)
Please check the settings in the CodeRabbit UI or the You can disable this status message by setting 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 Configuration File (
|
0a486a1
to
cb1d082
Compare
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.
Awesome, thank you so much for the reproduction itest!
Should this go into 0.18.3 even? Since that's still in RC and this does constitute a bug fix.
cb1d082
to
641140d
Compare
641140d
to
43a062c
Compare
good idea - changed the base to 0.18.3 & moved release notes 👍 |
erg sorry rebase things. fixing |
43a062c
to
843a4a9
Compare
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.
Great catch 👏
This commit adds a new route blinding itest that demonstrates that the reloading and re-forwarding of an UpdateAddHTLC message on restart currently is done incorrectly for a blinded path payment. This is due to the fact that the blinding point member is not currently set correctly. This is fixed in the next commit which will also change the test to assert that the behaviour is now correct.
This commit fixes the instantiation of the BlindingPoint member of PaymentDescriptor during the conversion from persisted LogUpdates. Previously, the blinding point was not set correctly. The test from the previous commit is also updated to now assert that this behaviour is now correct.
843a4a9
to
e99b09d
Compare
8f25de0
into
lightningnetwork:0-18-3-branch
@ellemouton I think we also need this PR on the master branch! Or will this be included in another PR? |
ah - cool i can re-open on master |
Correctly set the UpdateAddHTLC.BlindingPoint member when reading LogUpdates from disk. This PR also adds a test to cover this case.