mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-23 00:54:20 +01:00
bitcoin/preimage: struct preimage.
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>
This commit is contained in:
@@ -3,10 +3,11 @@
|
||||
#include "config.h"
|
||||
#include "lightning.pb-c.h"
|
||||
|
||||
struct peer;
|
||||
struct htlc;
|
||||
struct sha256;
|
||||
struct commit_info;
|
||||
struct htlc;
|
||||
struct peer;
|
||||
struct preimage;
|
||||
struct sha256;
|
||||
|
||||
/* Send various kinds of packets */
|
||||
void queue_pkt_open(struct peer *peer, bool offer_anchor);
|
||||
@@ -48,7 +49,7 @@ Pkt *accept_pkt_htlc_fail(struct peer *peer, const Pkt *pkt, struct htlc **h,
|
||||
u8 **fail);
|
||||
|
||||
Pkt *accept_pkt_htlc_fulfill(struct peer *peer, const Pkt *pkt, struct htlc **h,
|
||||
struct rval *r);
|
||||
struct preimage *r);
|
||||
|
||||
Pkt *accept_pkt_update_fee(struct peer *peer, const Pkt *pkt, u64 *feerate);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user