Each header should only include the other headers it needs to compile; `devtools/reduce-includes.sh */*.h` does this. The C files then need additional includes if they don't compile. And remove the entirely useless wire/onion_wire.h, which only serves to include wire/onion_wiregen.h. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
31 lines
835 B
C
31 lines
835 B
C
#ifndef LIGHTNING_CHANNELD_INFLIGHT_H
|
|
#define LIGHTNING_CHANNELD_INFLIGHT_H
|
|
|
|
#include "config.h"
|
|
#include <bitcoin/pubkey.h>
|
|
#include <bitcoin/signature.h>
|
|
#include <bitcoin/tx.h>
|
|
#include <common/amount.h>
|
|
|
|
struct inflight {
|
|
/* The new channel outpoint */
|
|
struct bitcoin_outpoint outpoint;
|
|
struct pubkey remote_funding;
|
|
struct amount_sat amnt;
|
|
bool remote_tx_sigs;
|
|
struct wally_psbt *psbt;
|
|
s64 splice_amnt;
|
|
struct bitcoin_tx *last_tx;
|
|
/* last_sig is assumed valid if last_tx is set */
|
|
struct bitcoin_signature last_sig;
|
|
bool i_am_initiator;
|
|
bool force_sign_first;
|
|
struct short_channel_id *locked_scid;
|
|
bool i_sent_sigs;
|
|
};
|
|
|
|
struct inflight *fromwire_inflight(const tal_t *ctx, const u8 **cursor, size_t *max);
|
|
void towire_inflight(u8 **pptr, const struct inflight *inflight);
|
|
|
|
#endif /* LIGHTNING_CHANNELD_INFLIGHT_H */
|