Skip to content
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

Allow self-payment #2462

Open
TheBlueMatt opened this issue Jul 29, 2023 · 2 comments
Open

Allow self-payment #2462

TheBlueMatt opened this issue Jul 29, 2023 · 2 comments
Milestone

Comments

@TheBlueMatt
Copy link
Collaborator

Shouldn't be too hard, really, just have to have a length-one route to ourselves with a dummy SCID (zero?) generated by the router. Then if we see it we immediately generate a PaymentSent and PaymentReceived event and put it in the outbound payment set as fulfilled. We'll have to think a bit about how to ensure persistence is guaranteed but maybe we just handwave that away for now and rely on the user checking the pending payment set and seeing it missing?

@TheBlueMatt TheBlueMatt added this to the 0.1.1 milestone Jul 29, 2023
@vladimirfomene
Copy link
Contributor

@TheBlueMatt let me take this issue

@TheBlueMatt
Copy link
Collaborator Author

Go for it.

vladimirfomene added a commit to vladimirfomene/rust-lightning that referenced this issue Sep 13, 2023
This PR solves issue lightningdevkit#2462. If we asked to
pay an invoice that we generated ourselves. We
generate PaymentSent and PaymentClaimable event
and mark the payment as fulfilled in our set
of outbound payments.

This PR is important because we realized users
can easily screw up self payments when they implement
it themselves. See here: https://lists.linuxfoundation.org/pipermail/lightning-dev/2023-June/003983.html
vladimirfomene added a commit to vladimirfomene/rust-lightning that referenced this issue Sep 18, 2023
This PR solves issue lightningdevkit#2462. If we asked to
pay an invoice that we generated ourselves. We
generate PaymentSent and PaymentClaimable event
and mark the payment as fulfilled in our set
of outbound payments.

This PR is important because we realized users
can easily screw up self payments when they implement
it themselves. See here: https://lists.linuxfoundation.org/pipermail/lightning-dev/2023-June/003983.html
vladimirfomene added a commit to vladimirfomene/rust-lightning that referenced this issue Sep 18, 2023
This PR solves issue lightningdevkit#2462. If we asked to
pay an invoice that we generated ourselves. We
generate PaymentSent and PaymentClaimable event
and mark the payment as fulfilled in our set
of outbound payments.

This PR is important because we realized users
can easily screw up self payments when they implement
it themselves. See here: https://lists.linuxfoundation.org/pipermail/lightning-dev/2023-June/003983.html
vladimirfomene added a commit to vladimirfomene/rust-lightning that referenced this issue Sep 18, 2023
This PR solves issue lightningdevkit#2462. If we asked to
pay an invoice that we generated ourselves. We
generate PaymentSent and PaymentClaimable event
and mark the payment as fulfilled in our set
of outbound payments.

This PR is important because we realized users
can easily screw up self payments when they implement
it themselves. See here: https://lists.linuxfoundation.org/pipermail/lightning-dev/2023-June/003983.html
vladimirfomene added a commit to vladimirfomene/rust-lightning that referenced this issue Sep 19, 2023
This PR solves issue lightningdevkit#2462. If we asked to
pay an invoice that we generated ourselves. We
generate PaymentSent and PaymentClaimable event
and mark the payment as fulfilled in our set
of outbound payments.

This PR is important because we realized users
can easily screw up self payments when they implement
it themselves. See here: https://lists.linuxfoundation.org/pipermail/lightning-dev/2023-June/003983.html
vladimirfomene added a commit to vladimirfomene/rust-lightning that referenced this issue Sep 21, 2023
This PR solves issue lightningdevkit#2462. If we asked to
pay an invoice that we generated ourselves. We
generate PaymentSent and PaymentClaimable event
and mark the payment as fulfilled in our set
of outbound payments.

This PR is important because we realized users
can easily screw up self payments when they implement
it themselves. See here: https://lists.linuxfoundation.org/pipermail/lightning-dev/2023-June/003983.html
vladimirfomene added a commit to vladimirfomene/rust-lightning that referenced this issue Sep 22, 2023
This PR solves issue lightningdevkit#2462. If we asked to
pay an invoice that we generated ourselves. We
generate PaymentSent and PaymentClaimable event
and mark the payment as fulfilled in our set
of outbound payments.

This PR is important because we realized users
can easily screw up self payments when they implement
it themselves. See here: https://lists.linuxfoundation.org/pipermail/lightning-dev/2023-June/003983.html
vladimirfomene added a commit to vladimirfomene/rust-lightning that referenced this issue Sep 22, 2023
This PR solves issue lightningdevkit#2462. If we asked to
pay an invoice that we generated ourselves. We
generate PaymentSent and PaymentClaimable event
and mark the payment as fulfilled in our set
of outbound payments.

This PR is important because we realized users
can easily screw up self payments when they implement
it themselves. See here: https://lists.linuxfoundation.org/pipermail/lightning-dev/2023-June/003983.html
vladimirfomene added a commit to vladimirfomene/rust-lightning that referenced this issue Sep 22, 2023
This PR solves issue lightningdevkit#2462. If we asked to
pay an invoice that we generated ourselves. We
generate PaymentSent and PaymentClaimable event
and mark the payment as fulfilled in our set
of outbound payments.

This PR is important because we realized users
can easily screw up self payments when they implement
it themselves. See here: https://lists.linuxfoundation.org/pipermail/lightning-dev/2023-June/003983.html
vladimirfomene added a commit to vladimirfomene/rust-lightning that referenced this issue Oct 27, 2023
This PR solves issue lightningdevkit#2462. If we asked to
pay an invoice that we generated ourselves. We
generate PaymentSent and PaymentClaimable event
and mark the payment as fulfilled in our set
of outbound payments.

This PR is important because we realized users
can easily screw up self payments when they implement
it themselves. See here: https://lists.linuxfoundation.org/pipermail/lightning-dev/2023-June/003983.html
vladimirfomene added a commit to vladimirfomene/rust-lightning that referenced this issue Oct 28, 2023
This PR solves issue lightningdevkit#2462. If we asked to
pay an invoice that we generated ourselves. We
generate PaymentSent and PaymentClaimable event
and mark the payment as fulfilled in our set
of outbound payments.

This PR is important because we realized users
can easily screw up self payments when they implement
it themselves. See here: https://lists.linuxfoundation.org/pipermail/lightning-dev/2023-June/003983.html
vladimirfomene added a commit to vladimirfomene/rust-lightning that referenced this issue Nov 1, 2023
This PR solves issue lightningdevkit#2462. If we asked to
pay an invoice that we generated ourselves. We
generate PaymentSent and PaymentClaimable event
and mark the payment as fulfilled in our set
of outbound payments.

This PR is important because we realized users
can easily screw up self payments when they implement
it themselves. See here: https://lists.linuxfoundation.org/pipermail/lightning-dev/2023-June/003983.html
vladimirfomene added a commit to vladimirfomene/rust-lightning that referenced this issue Nov 1, 2023
This PR solves issue lightningdevkit#2462. If we asked to
pay an invoice that we generated ourselves. We
generate PaymentSent and PaymentClaimable event
and mark the payment as fulfilled in our set
of outbound payments.

This PR is important because we realized users
can easily screw up self payments when they implement
it themselves. See here: https://lists.linuxfoundation.org/pipermail/lightning-dev/2023-June/003983.html
vladimirfomene added a commit to vladimirfomene/rust-lightning that referenced this issue Nov 3, 2023
This PR solves issue lightningdevkit#2462. If we asked to
pay an invoice that we generated ourselves. We
generate PaymentSent and PaymentClaimable event
and mark the payment as fulfilled in our set
of outbound payments.

This PR is important because we realized users
can easily screw up self payments when they implement
it themselves. See here: https://lists.linuxfoundation.org/pipermail/lightning-dev/2023-June/003983.html
vladimirfomene added a commit to vladimirfomene/rust-lightning that referenced this issue Nov 12, 2023
This PR solves issue lightningdevkit#2462. If we asked to
pay an invoice that we generated ourselves. We
generate PaymentSent and PaymentClaimable event
and mark the payment as fulfilled in our set
of outbound payments.

This PR is important because we realized users
can easily screw up self payments when they implement
it themselves. See here: https://lists.linuxfoundation.org/pipermail/lightning-dev/2023-June/003983.html
vladimirfomene added a commit to vladimirfomene/rust-lightning that referenced this issue Jan 11, 2024
This PR solves issue lightningdevkit#2462. If we asked to
pay an invoice that we generated ourselves. We
generate PaymentSent and PaymentClaimable event
and mark the payment as fulfilled in our set
of outbound payments.

This PR is important because we realized users
can easily screw up self payments when they implement
it themselves. See here: https://lists.linuxfoundation.org/pipermail/lightning-dev/2023-June/003983.html
vladimirfomene added a commit to vladimirfomene/rust-lightning that referenced this issue Jan 26, 2024
This PR solves issue lightningdevkit#2462. If we asked to
pay an invoice that we generated ourselves. We
generate PaymentSent and PaymentClaimable event
and mark the payment as fulfilled in our set
of outbound payments.

This PR is important because we realized users
can easily screw up self payments when they implement
it themselves. See here: https://lists.linuxfoundation.org/pipermail/lightning-dev/2023-June/003983.html
vladimirfomene added a commit to vladimirfomene/rust-lightning that referenced this issue Jan 29, 2024
This PR solves issue lightningdevkit#2462. If we asked to
pay an invoice that we generated ourselves. We
generate PaymentSent and PaymentClaimable event
and mark the payment as fulfilled in our set
of outbound payments.

This PR is important because we realized users
can easily screw up self payments when they implement
it themselves. See here: https://lists.linuxfoundation.org/pipermail/lightning-dev/2023-June/003983.html
vladimirfomene added a commit to vladimirfomene/rust-lightning that referenced this issue Feb 5, 2024
This PR solves issue lightningdevkit#2462. If we asked to
pay an invoice that we generated ourselves. We
generate PaymentSent and PaymentClaimable event
and mark the payment as fulfilled in our set
of outbound payments.

This PR is important because we realized users
can easily screw up self payments when they implement
it themselves. See here: https://lists.linuxfoundation.org/pipermail/lightning-dev/2023-June/003983.html
vladimirfomene added a commit to vladimirfomene/rust-lightning that referenced this issue Feb 5, 2024
This PR solves issue lightningdevkit#2462. If we asked to
pay an invoice that we generated ourselves. We
generate PaymentSent and PaymentClaimable event
and mark the payment as fulfilled in our set
of outbound payments.

This PR is important because we realized users
can easily screw up self payments when they implement
it themselves. See here: https://lists.linuxfoundation.org/pipermail/lightning-dev/2023-June/003983.html
vladimirfomene added a commit to vladimirfomene/rust-lightning that referenced this issue Mar 8, 2024
This PR solves issue lightningdevkit#2462. If we asked to
pay an invoice that we generated ourselves. We
generate PaymentSent and PaymentClaimable event
and mark the payment as fulfilled in our set
of outbound payments.

This PR is important because we realized users
can easily screw up self payments when they implement
it themselves. See here: https://lists.linuxfoundation.org/pipermail/lightning-dev/2023-June/003983.html
vladimirfomene added a commit to vladimirfomene/rust-lightning that referenced this issue Mar 11, 2024
This PR solves issue lightningdevkit#2462. If we asked to
pay an invoice that we generated ourselves. We
generate PaymentSent and PaymentClaimable event
and mark the payment as fulfilled in our set
of outbound payments.

This PR is important because we realized users
can easily screw up self payments when they implement
it themselves. See here: https://lists.linuxfoundation.org/pipermail/lightning-dev/2023-June/003983.html
vladimirfomene added a commit to vladimirfomene/rust-lightning that referenced this issue Mar 11, 2024
This PR solves issue lightningdevkit#2462. If we asked to
pay an invoice that we generated ourselves. We
generate PaymentSent and PaymentClaimable event
and mark the payment as fulfilled in our set
of outbound payments.

This PR is important because we realized users
can easily screw up self payments when they implement
it themselves. See here: https://lists.linuxfoundation.org/pipermail/lightning-dev/2023-June/003983.html
vladimirfomene added a commit to vladimirfomene/rust-lightning that referenced this issue Mar 11, 2024
This PR solves issue lightningdevkit#2462. If we asked to
pay an invoice that we generated ourselves. We
generate PaymentSent and PaymentClaimable event
and mark the payment as fulfilled in our set
of outbound payments.

This PR is important because we realized users
can easily screw up self payments when they implement
it themselves. See here: https://lists.linuxfoundation.org/pipermail/lightning-dev/2023-June/003983.html
vladimirfomene added a commit to vladimirfomene/rust-lightning that referenced this issue Mar 11, 2024
This PR solves issue lightningdevkit#2462. If we asked to
pay an invoice that we generated ourselves. We
generate PaymentSent and PaymentClaimable event
and mark the payment as fulfilled in our set
of outbound payments.

This PR is important because we realized users
can easily screw up self payments when they implement
it themselves. See here: https://lists.linuxfoundation.org/pipermail/lightning-dev/2023-June/003983.html
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

No branches or pull requests

2 participants