mirror of
https://github.com/aljazceru/lightning.git
synced 2026-01-06 15:44:21 +01:00
pay: Let sendpay modify the recorded msatoshi of payments.
This commit is contained in:
committed by
Christian Decker
parent
1fe79df867
commit
bc5fc692d1
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user