core-lightning/daemon/payment.h
Rusty Russell 5027410ab1 daemon: payment infrastructure.
A new 'accept-payment' command tells the node to fulfill HTLCs using
the R value if the amount is correct.  It's not wired in yet.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2016-07-01 11:59:15 +09:30

19 lines
374 B
C

#ifndef LIGHTNING_DAEMON_PAYMENT_H
#define LIGHTNING_DAEMON_PAYMENT_H
#include "config.h"
#include "peer.h"
struct lightningd_state;
struct payment {
struct list_node list;
u64 msatoshis;
struct rval r;
struct sha256 rhash;
};
struct payment *find_payment(struct lightningd_state *dstate,
const struct sha256 *rhash);
#endif /* LIGHTNING_DAEMON_PAYMENT_H */