Skip to content

Commit

Permalink
channeld: correct reversed shutdown message in billboard.
Browse files Browse the repository at this point in the history
It was backwards, which made #5496 confusing.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Changelog-Fixed: `listpeers` `status` "They've sent shutdown" and "We've sent shutdown" were backwards.
  • Loading branch information
rustyrussell authored and niftynei committed Aug 19, 2022
1 parent aabf38a commit 7c9985f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions common/billboard.c
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,9 @@ char *billboard_message(const tal_t *ctx,
if (!shutdown_sent[LOCAL] && !shutdown_sent[REMOTE])
shutdown_status = "";
else if (!shutdown_sent[LOCAL] && shutdown_sent[REMOTE])
shutdown_status = " We've send shutdown, waiting for theirs";
else if (shutdown_sent[LOCAL] && !shutdown_sent[REMOTE])
shutdown_status = " They've sent shutdown, waiting for ours";
else if (shutdown_sent[LOCAL] && !shutdown_sent[REMOTE])
shutdown_status = " We've send shutdown, waiting for theirs";
else if (shutdown_sent[LOCAL] && shutdown_sent[REMOTE]) {
if (num_htlcs)
shutdown_status = tal_fmt(ctx,
Expand Down

0 comments on commit 7c9985f

Please sign in to comment.