lightningd: sew in htlc set.
The invoice_try_pay code now takes a set, rather than a single htlc, but it's basically the same thing. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
committed by
Christian Decker
parent
c2b357b916
commit
8e3234e67a
@@ -4,7 +4,7 @@
|
||||
#include <wire/gen_onion_wire.h>
|
||||
|
||||
struct amount_msat;
|
||||
struct htlc_in;
|
||||
struct htlc_set;
|
||||
struct lightningd;
|
||||
struct sha256;
|
||||
|
||||
@@ -27,19 +27,15 @@ invoice_check_payment(const tal_t *ctx,
|
||||
const struct secret *payment_secret);
|
||||
|
||||
/**
|
||||
* invoice_try_pay - process payment for this payment_hash, amount msat.
|
||||
* invoice_try_pay - process payment for these incoming payments.
|
||||
* @ld: lightningd
|
||||
* @hin: the input HTLC which is offering to pay.
|
||||
* @payment_hash: hash of preimage they want.
|
||||
* @msat: amount they offer to pay.
|
||||
* @payment_secret: they payment secret they sent, if any.
|
||||
* @set: the htlc_set used to pay this.
|
||||
* @details: returned from successful invoice_check_payment.
|
||||
*
|
||||
* Either calls fulfill_htlc() or fail_htlcs().
|
||||
* Either calls fulfill_htlc_set() or fail_htlc_set().
|
||||
*/
|
||||
void invoice_try_pay(struct lightningd *ld,
|
||||
struct htlc_in *hin,
|
||||
const struct sha256 *payment_hash,
|
||||
const struct amount_msat msat,
|
||||
const struct secret *payment_secret);
|
||||
struct htlc_set *set,
|
||||
const struct invoice_details *details);
|
||||
|
||||
#endif /* LIGHTNING_LIGHTNINGD_INVOICE_H */
|
||||
|
||||
Reference in New Issue
Block a user