pay: Let sendpay modify the recorded msatoshi of payments.

This commit is contained in:
ZmnSCPxj
2018-03-22 12:49:09 +00:00
committed by Christian Decker
parent 1fe79df867
commit bc5fc692d1
5 changed files with 56 additions and 13 deletions

View File

@@ -57,11 +57,14 @@ struct sendpay_result {
* sendpay_result indicating an error code of PAY_IN_PROGRESS.
* It will only call the callback with successful sendpay_result
* if the payment has already completed with the same amount
* and destination before. */
* and destination before.
*
* The msatoshi given is what is recorded in the payment. */
bool send_payment(const tal_t *ctx,
struct lightningd* ld,
const struct sha256 *rhash,
const struct route_hop *route,
u64 msatoshi,
void (*cb)(const struct sendpay_result *, void*),
void *cbarg);
/* Wait for a previous send_payment to complete in definite