|
@ -130,6 +130,7 @@ struct peer { |
|
|
bool last_was_revoke; |
|
|
bool last_was_revoke; |
|
|
struct changed_htlc *last_sent_commit; |
|
|
struct changed_htlc *last_sent_commit; |
|
|
u64 revocations_received; |
|
|
u64 revocations_received; |
|
|
|
|
|
u8 channel_flags; |
|
|
}; |
|
|
}; |
|
|
|
|
|
|
|
|
static u8 *create_channel_announcement(const tal_t *ctx, struct peer *peer); |
|
|
static u8 *create_channel_announcement(const tal_t *ctx, struct peer *peer); |
|
@ -1657,6 +1658,7 @@ static void init_channel(struct peer *peer) |
|
|
&peer->short_channel_ids[LOCAL], |
|
|
&peer->short_channel_ids[LOCAL], |
|
|
&reconnected, |
|
|
&reconnected, |
|
|
&peer->unsent_shutdown_scriptpubkey, |
|
|
&peer->unsent_shutdown_scriptpubkey, |
|
|
|
|
|
&peer->channel_flags, |
|
|
&funding_signed)) |
|
|
&funding_signed)) |
|
|
status_failed(WIRE_CHANNEL_BAD_COMMAND, "Init: %s", |
|
|
status_failed(WIRE_CHANNEL_BAD_COMMAND, "Init: %s", |
|
|
tal_hex(msg, msg)); |
|
|
tal_hex(msg, msg)); |
|
@ -1745,8 +1747,10 @@ static void handle_funding_locked(struct peer *peer, const u8 *msg) |
|
|
|
|
|
|
|
|
static void handle_funding_announce_depth(struct peer *peer, const u8 *msg) |
|
|
static void handle_funding_announce_depth(struct peer *peer, const u8 *msg) |
|
|
{ |
|
|
{ |
|
|
status_trace("Exchanging announcement signatures."); |
|
|
if (peer->channel_flags & CHANNEL_FLAGS_ANNOUNCE_CHANNEL) { |
|
|
send_announcement_signatures(peer); |
|
|
status_trace("Exchanging announcement signatures."); |
|
|
|
|
|
send_announcement_signatures(peer); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
/* Only send the announcement and update if the other end gave
|
|
|
/* Only send the announcement and update if the other end gave
|
|
|
* us its sig */ |
|
|
* us its sig */ |
|
|