2017-04-03 06:07:56 +09:30
|
|
|
#ifndef LIGHTNING_LIGHTNINGD_PAY_H
|
|
|
|
#define LIGHTNING_LIGHTNINGD_PAY_H
|
|
|
|
#include "config.h"
|
|
|
|
|
2017-06-20 15:23:03 +09:30
|
|
|
struct htlc_out;
|
2017-04-03 06:07:56 +09:30
|
|
|
struct lightningd;
|
2019-01-18 01:55:32 +10:30
|
|
|
struct preimage;
|
2018-02-15 03:32:03 +00:00
|
|
|
struct sha256;
|
2017-04-03 06:07:56 +09:30
|
|
|
|
2017-06-20 15:23:03 +09:30
|
|
|
void payment_succeeded(struct lightningd *ld, struct htlc_out *hout,
|
2017-04-03 06:07:56 +09:30
|
|
|
const struct preimage *rval);
|
|
|
|
|
2017-06-20 15:42:03 +09:30
|
|
|
void payment_failed(struct lightningd *ld, const struct htlc_out *hout,
|
|
|
|
const char *localfail);
|
2017-04-03 06:07:56 +09:30
|
|
|
|
2018-03-10 06:39:11 +00:00
|
|
|
/* Inform payment system to save the payment. */
|
|
|
|
void payment_store(struct lightningd *ld, const struct sha256 *payment_hash);
|
|
|
|
|
2017-04-03 06:07:56 +09:30
|
|
|
#endif /* LIGHTNING_LIGHTNINGD_PAY_H */
|