sensei icon indicating copy to clipboard operation
sensei copied to clipboard

phantom payments / multi-node receive support

Open johncantrell97 opened this issue 3 years ago • 2 comments

this is a new feature landing in ldk 105 that allows the creation of 'phantom' invoices. the idea is you can run a small cluster of nodes and then generate an invoice that any one of them can pay. this functionality is enabled by actually paying to a 'phantom' node that does not exist but any of the nodes in the cluster can fulfill the payment.

this provides reliability in case a node goes down or has no liquidity -- the payment can be retried and other nodes in the cluster can step up to handle it.

think this can be as easy as supporting manual entry of other sensei nodes in your cluster and then a new flow for generating a phantom invoice against this cluster.

johncantrell97 avatar Feb 08 '22 01:02 johncantrell97

I can take a look at this.

dunxen avatar May 03 '22 18:05 dunxen

The invoice expiry for the phantom invoice utility functions will be in LDK 107 if we need that too.

dunxen avatar May 03 '22 18:05 dunxen

implemented in #139

johncantrell97 avatar Oct 04 '22 21:10 johncantrell97