Rusty Russell
0dcd66880c
Rename `struct json_result` to `struct json_stream` (RENAMEONLY)
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
6 years ago
Christian Decker
ab223c2ade
pay: Pass description to send_payment
Extract the description from the bolt11 string and store it in the database.
7 years ago
ZmnSCPxj
bc5fc692d1
pay: Let `sendpay` modify the recorded `msatoshi` of payments.
7 years ago
ZmnSCPxj
3c39bcc0f7
pay: Make json_add_payment_fields accessible to other parts.
7 years ago
ZmnSCPxj
fa281d32ea
pay: sendpay_result has payment on success or in-progress.
7 years ago
ZmnSCPxj
a0c2686ebd
pay: Have sendpay wait for payment to be saved.
The payment should be stored in a "timely" manner, i.e.
within 10ms.
7 years ago
ZmnSCPxj
61882ed9df
pay: Add hook for triggering storage of payments.
7 years ago
ZmnSCPxj
1e4adb0359
pay: Make sendpay nonblocking.
7 years ago
ZmnSCPxj
fda26bdcda
payalgo: New file for pay command.
7 years ago
Rusty Russell
7882bc0536
lightningd: unify pay vs forward path when handling failures.
It's a bit tricky since we want to hand more verbose errors to the local
case, but the locally-created and forwarded paths had diverged (the local
one missing some things).
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
8 years ago
Rusty Russell
207eeae1f7
lightningd: explictly split htlc_in and htlc_out.
They share some fields, but they're basically different, and it's clearest
to treat them differently in most places.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
8 years ago
Rusty Russell
018c1d932d
lightning/pay: fix missing include.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
8 years ago