2020-08-25 04:15:48 +02:00
|
|
|
#ifndef LIGHTNING_ONCHAIND_ONCHAIND_WIRE_H
|
|
|
|
#define LIGHTNING_ONCHAIND_ONCHAIND_WIRE_H
|
2017-08-18 06:43:52 +02:00
|
|
|
#include "config.h"
|
|
|
|
#include <ccan/short_types/short_types.h>
|
|
|
|
#include <ccan/tal/tal.h>
|
2017-08-28 18:04:01 +02:00
|
|
|
#include <common/htlc.h>
|
2017-08-18 06:43:52 +02:00
|
|
|
|
2018-02-08 22:43:01 +01:00
|
|
|
/* The minimal info about an HTLC. */
|
2017-08-18 06:43:52 +02:00
|
|
|
struct htlc_stub {
|
|
|
|
enum side owner;
|
|
|
|
u32 cltv_expiry;
|
2018-10-23 11:40:22 +02:00
|
|
|
u64 id;
|
2017-08-18 06:43:52 +02:00
|
|
|
struct ripemd160 ripemd;
|
|
|
|
};
|
|
|
|
|
|
|
|
void towire_htlc_stub(u8 **pptr, const struct htlc_stub *htlc_stub);
|
|
|
|
void fromwire_htlc_stub(const u8 **cursor, size_t *max,
|
|
|
|
struct htlc_stub *htlc_stub);
|
2020-08-25 04:15:48 +02:00
|
|
|
#endif /* LIGHTNING_ONCHAIND_ONCHAIND_WIRE_H */
|