Skip to content

Minor API improvements for sending/receiving payments#619

Merged
pm47 merged 2 commits into
masterfrom
api-improvements
Mar 11, 2024
Merged

Minor API improvements for sending/receiving payments#619
pm47 merged 2 commits into
masterfrom
api-improvements

Conversation

@pm47
Copy link
Copy Markdown
Member

@pm47 pm47 commented Mar 11, 2024

Commits are independent.

Define a NodeEvent.PaymentReceived that aims to replace the eponym class in the Peer (which is marked as deprecated, but otherwise left untouched). The previous impl wasn't emitted for pay-to-open parts.

Also define a "synchronous' sendLightning method similar to other peer methods.

pm47 added 2 commits March 11, 2024 16:53
Make it a `NodeEvent`, and deprecate corresponding `PeerEvent`.
@pm47 pm47 requested a review from t-bast March 11, 2024 16:00
Copy link
Copy Markdown
Member

@dpad85 dpad85 left a comment

Choose a reason for hiding this comment

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

Looks good to me, won't cause integration issues with Phoenix.

Copy link
Copy Markdown
Member

@t-bast t-bast left a comment

Choose a reason for hiding this comment

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

LGTM, conflicts with #618 should be easy to handle.

@pm47 pm47 merged commit cb0f5c5 into master Mar 11, 2024
@pm47 pm47 deleted the api-improvements branch March 11, 2024 17:31
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