Skip to content

Commit 5531c9d

Browse files
ddustinrustyrussell
authored andcommitted
splice: quieter in more cases
We also shouldn’t be announcing channels or commitments when we have requested for `stfu` mode but are waiting for our apeer. Changelog-None
1 parent af6b535 commit 5531c9d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

channeld/channeld.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -446,7 +446,7 @@ static void send_channel_initial_update(struct peer *peer)
446446
/* If `stfu` is already active then the channel is being mutated quickly
447447
* after creation. These mutations (ie. splice) must announce the
448448
* channel when they finish anyway, so it is safe to skip it here */
449-
if (!is_stfu_active(peer))
449+
if (!is_stfu_active(peer) && !peer->want_stfu)
450450
send_channel_update(peer, 0);
451451
}
452452

@@ -597,7 +597,7 @@ static void announce_channel(struct peer *peer)
597597

598598
static void announce_channel_if_not_stfu(struct peer *peer)
599599
{
600-
if (!is_stfu_active(peer))
600+
if (!is_stfu_active(peer) && !peer->want_stfu)
601601
announce_channel(peer);
602602
}
603603

@@ -1734,7 +1734,7 @@ static void send_commit(struct peer *peer)
17341734

17351735
static void send_commit_if_not_stfu(struct peer *peer)
17361736
{
1737-
if (!is_stfu_active(peer)) {
1737+
if (!is_stfu_active(peer) && !peer->want_stfu) {
17381738
send_commit(peer);
17391739
}
17401740
else {

0 commit comments

Comments
 (0)