-
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
lnrpc+itest: return channel Memo for Pending channels #7728
lnrpc+itest: return channel Memo for Pending channels #7728
Conversation
Hey @guggero and @positiveblue I created this follow-up PR to add the Memo field to the PendingChannels response. To avoid bloating the itest suite (as was recommended in the last PR), I've added small bit of extra logic to an existing itest. I also haven't edited release notes—I read over the note from the last PR and I think it sufficiently covers this change as well. Let me know if all that is ok or if I should do something differently. One thing to note is that PendingChannels returns three types of channels:
(1) and (3) fetch from the (2) on the other hand fetches from the Should we update the code that marks a channel as closed (thereby moving it from the open -> closed bucket) to also serialize the Memo in |
No entry in the release notes is fine, I added the
I think the memo is definitely helpful for pending force closed or fully closed channels. So adding it to the |
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.
I think the skip ci
in the commit message needs to be removed to let the build run.
Aah my bad I thought the flag was necessary if I didn't update release notes. Will remove it. @guggero I realized that the full state of the channel does get written to the Line 3499 in bbbf7d3
This allows me to populate the Memo in all kinds of channels returned by |
c32662e
to
3b5d62a
Compare
@guggero: review reminder |
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 for the PR!
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.
LGTM, thanks a lot!
cc @saubyk
3b5d62a
to
dd25190
Compare
Concept Ack |
In a previous PR we added a Memo field for channels that could be specified when opening a channel. This was a reference note-to-self with no bearing on the functioning of the channel. In that PR, the memo value was returned only through ListChannels. This commit builds upon that PR by also returning the Memo field for channels returned by PendingChannels RPC.
dd25190
to
44fdd02
Compare
Apologies for the late turnaround here, I didn't realize a merge conflict had appeared. Just fixed, should be all good now 🤞 |
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.
Thank you for this @shaurya947 I think we are good to go 🚀
Change Description
In a previous PR #7668 we added a Memo field for channels that could be specified when opening a channel. This was a reference note-to-self with no bearing on the functioning of the channel. In that PR, the memo value was returned only through ListChannels. This PR builds upon that PR by also returning the Memo field for pending open and waiting close channels.
Steps to Test
An itest has been updated to verify that the Memo is returned but to manually test, one can verify the Memo field on a pending-open or waiting-close channel
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.