mirror of
https://github.com/ElementsProject/lightning.git
synced 2024-11-19 18:11:28 +01:00
c6997f15c7
We had a hack for 'struct rval' in protobuf_convert.h; make an explicit header and put it in bitcoin/preimage.h. It's not really bitcoin-specific, but it's better than having bitcoin/script depend on an external header. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
20 lines
478 B
C
20 lines
478 B
C
#ifndef LIGHTNING_DAEMON_PAY_H
|
|
#define LIGHTNING_DAEMON_PAY_H
|
|
#include "config.h"
|
|
|
|
struct htlc;
|
|
struct lightningd_state;
|
|
struct preimage;
|
|
|
|
void complete_pay_command(struct lightningd_state *dstate,
|
|
const struct htlc *htlc);
|
|
|
|
bool pay_add(struct lightningd_state *dstate,
|
|
const struct sha256 *rhash,
|
|
u64 msatoshi,
|
|
const struct pubkey *ids,
|
|
struct htlc *htlc,
|
|
const u8 *fail,
|
|
const struct preimage *r);
|
|
#endif /* LIGHTNING_DAEMON_PAY_H */
|