Skip to content

Commit 6f785a5

Browse files
committed
splice: serialize inflight is_locked field
This field should be serialized for communication between channeld and lightningd.
1 parent 453a4e1 commit 6f785a5

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

channeld/inflight.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ struct inflight *fromwire_inflight(const tal_t *ctx, const u8 **cursor, size_t *
2525
}
2626
inflight->i_am_initiator = fromwire_bool(cursor, max);
2727
inflight->force_sign_first = fromwire_bool(cursor, max);
28+
inflight->is_locked = fromwire_bool(cursor, max);
2829

2930
return inflight;
3031
}
@@ -44,4 +45,5 @@ void towire_inflight(u8 **pptr, const struct inflight *inflight)
4445
}
4546
towire_bool(pptr, inflight->i_am_initiator);
4647
towire_bool(pptr, inflight->force_sign_first);
48+
towire_bool(pptr, inflight->is_locked);
4749
}

channeld/inflight.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
#include <common/amount.h>
88

99
struct inflight {
10+
/* The new channel outpoint */
1011
struct bitcoin_outpoint outpoint;
1112
struct pubkey remote_funding;
1213
struct amount_sat amnt;

0 commit comments

Comments
 (0)