Rusty Russell
41e15b1ac9
xpay: age the "xpay" layer so we forget information older than 1 hour.
...
1 hour is what mpay uses, so stick with that for now.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2024-11-18 11:03:26 +10:30
Rusty Russell
c715253af7
xpay: option to steal easy commands from pay
.
...
Note: won't work with grpc (or probably other tools), since the output
is different. But good for testing.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Changelog-Added: Config: option `xpay-handle-pay` can be used to call xpay when pay is used in many cases (but output is different from pay!)
2024-11-18 11:03:26 +10:30
Rusty Russell
64c1522597
xpay: don't use rpc_scan or jsonrpc_request_sync.
...
These will deadlock once we hook into rpc_command, so avoid them.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2024-11-18 11:03:26 +10:30
Rusty Russell
dd4d3940b1
xpay: implement partial payments.
...
Explicitly tell xpay to only make part of a payment.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2024-11-18 11:03:26 +10:30
Rusty Russell
47318a7875
xpay: add deadline.
...
We promised this in the schema originally, now support it.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2024-11-18 11:03:26 +10:30
Rusty Russell
7c2407ef48
xpay: new plugin which uses askrene, injectpaymentonion.
...
Changelog-Added: Plugins: cln-xpay, with associated `xpay` command for payments.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2024-11-18 11:03:26 +10:30