Skip to content

Conversation

@Evanfeenstra
Copy link
Contributor

Adds send_with_custom_tlv to SpontaneousPayment, so you can send a keysend with custom data inside.

Please LMK if there is more bindings stuff or testing that should be added here.

Thanks!

Copy link
Collaborator

@tnull tnull left a comment

Choose a reason for hiding this comment

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

Thank you for looking into this! Already looks pretty good to me, just a few comments.

I think it would make sense to also add custom TLV support of the receiver's end while we're at it, which would also allow adding end-to-end test coverage in unit tests.

Copy link
Collaborator

@tnull tnull left a comment

Choose a reason for hiding this comment

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

Thanks for adding the receive part also. I don't think we need / should add the TlvEntries wrapper type, but apart from that it mostly looks good.

Btw, please try to clean up the the commit history so that it reflects a number of logical changes to the codebase. Fixups should be 'sorted in' beneath such feature commits so they can be squashed into the respective commits before merging.

@Evanfeenstra
Copy link
Contributor Author

@tnull after those last updates, the changes are small enough that I just squashed to a single commit. This is much cleaner now :)

@Evanfeenstra Evanfeenstra force-pushed the keysend-custom-tlv branch 2 times, most recently from da78120 to 848e4de Compare December 2, 2024 20:06
Copy link
Collaborator

@tnull tnull left a comment

Choose a reason for hiding this comment

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

@tnull after those last updates, the changes are small enough that I just squashed to a single commit. This is much cleaner now :)

Thanks, but note that it's usually preferable to break up a PR into multiple commits and to squash fixups in rounds or just before merging as it allows reviewers to follow what comments/requested changes were already addressed.

Copy link
Collaborator

@tnull tnull left a comment

Choose a reason for hiding this comment

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

LGTM, please squash the fixup commit.

@tnull tnull merged commit 20a6927 into lightningdevkit:main Dec 9, 2024
4 of 13 checks passed
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