core-lightning/lightningd/pay.h

20 lines
540 B
C
Raw Normal View History

#ifndef LIGHTNING_LIGHTNINGD_PAY_H
#define LIGHTNING_LIGHTNINGD_PAY_H
#include "config.h"
struct htlc_out;
struct lightningd;
struct preimage;
2018-02-15 04:32:03 +01:00
struct sha256;
void payment_succeeded(struct lightningd *ld, struct htlc_out *hout,
const struct preimage *rval);
void payment_failed(struct lightningd *ld, const struct htlc_out *hout,
const char *localfail);
/* Inform payment system to save the payment. */
void payment_store(struct lightningd *ld, const struct sha256 *payment_hash);
#endif /* LIGHTNING_LIGHTNINGD_PAY_H */