Browse Source

closing: don't go into temporary failure because we completed negotiation.

It only lasts until the next block, but it's weird.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
ppa-0.6.1
Rusty Russell 7 years ago
parent
commit
9430a455ff
  1. 5
      lightningd/closing_control.c

5
lightningd/closing_control.c

@ -90,6 +90,11 @@ static void peer_closing_complete(struct channel *channel, const u8 *msg)
return; return;
} }
/* Don't report spurious failure when closingd exits. */
channel_set_owner(channel, NULL);
/* Clear any transient negotiation messages */
channel_set_billboard(channel, false, NULL);
/* Retransmission only, ignore closing. */ /* Retransmission only, ignore closing. */
if (channel->state == CLOSINGD_COMPLETE) if (channel->state == CLOSINGD_COMPLETE)
return; return;

Loading…
Cancel
Save