Skip to content

Commit e11c2f6

Browse files
committed
channeld: allow announcement_signatures during splice.
It can actually happen, at least in theory. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
1 parent cca6d16 commit e11c2f6

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

channeld/channeld.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4788,7 +4788,8 @@ static void peer_in(struct peer *peer, const u8 *msg)
47884788
check_tx_abort(peer, msg, NULL);
47894789

47904790
/* If we're in STFU mode and aren't waiting for a STFU mode
4791-
* specific message, the only valid message was tx_abort */
4791+
* specific message, the only valid message was tx_abort (or a
4792+
* belated announcement_signatures!) */
47924793
if (is_stfu_active(peer) && !peer->stfu_wait_single_msg) {
47934794
if (peer->splicing && type == WIRE_TX_SIGNATURES) {
47944795
if (peer->splicing->tx_sig_msg)
@@ -4798,7 +4799,7 @@ static void peer_in(struct peer *peer, const u8 *msg)
47984799
peer->splicing->tx_sig_msg = tal_steal(peer->splicing,
47994800
msg);
48004801
return;
4801-
} else {
4802+
} else if (type != WIRE_ANNOUNCEMENT_SIGNATURES) {
48024803
peer_failed_warn(peer->pps, &peer->channel_id,
48034804
"Received message %s when only TX_ABORT was"
48044805
" valid", peer_wire_name(type));

0 commit comments

Comments
 (0)