rust-lightning icon indicating copy to clipboard operation
rust-lightning copied to clipboard

Allow self-payment

Open TheBlueMatt opened this issue 2 years ago • 8 comments

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 avatar Jul 29 '23 05:07 TheBlueMatt

@TheBlueMatt let me take this issue

vladimirfomene avatar Aug 22 '23 14:08 vladimirfomene

Go for it.

TheBlueMatt avatar Aug 22 '23 21:08 TheBlueMatt

@oochenn indicated interest in picking this up.

tnull avatar Jun 03 '25 11:06 tnull

Hey I would like to work on this.

abhilov23 avatar Jun 15 '25 20:06 abhilov23

Hey I would like to work on this.

As mentioned above, recently @Oochenn wanted to work on this, so you might want to coordinate to avoid duplicate work.

tnull avatar Jun 16 '25 07:06 tnull

He can take it

Oochenn avatar Jun 16 '25 08:06 Oochenn

@abhilov23 Go for it then!

tnull avatar Jun 16 '25 08:06 tnull

Seem @Prabhat1308 now opened a draft for this over at #3934

tnull avatar Jul 16 '25 10:07 tnull