You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
556 B
19 lines
556 B
7 years ago
|
#ifndef LIGHTNING_LIGHTNINGD_ONCHAIN_ONCHAIN_WIRE_H
|
||
|
#define LIGHTNING_LIGHTNINGD_ONCHAIN_ONCHAIN_WIRE_H
|
||
7 years ago
|
#include "config.h"
|
||
|
#include <ccan/short_types/short_types.h>
|
||
|
#include <ccan/tal/tal.h>
|
||
7 years ago
|
#include <common/htlc.h>
|
||
7 years ago
|
|
||
|
/* The minimal info about an htlc. */
|
||
|
struct htlc_stub {
|
||
|
enum side owner;
|
||
|
u32 cltv_expiry;
|
||
|
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);
|
||
7 years ago
|
#endif /* LIGHTNING_LIGHTNINGD_ONCHAIN_ONCHAIN_WIRE_H */
|