Browse Source

lightningd: don't crash when simply using closingd just for retransmission.

test_closing_negotiation_reconnect (__main__.LightningDTests) ... peer state CLOSINGD_COMPLETE should be CLOSINGD_SIGEXCHANGE

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
ppa-0.6.1
Rusty Russell 8 years ago
parent
commit
8b71ea924a
  1. 4
      lightningd/peer_control.c

4
lightningd/peer_control.c

@ -1276,6 +1276,10 @@ static int peer_closing_complete(struct peer *peer, const u8 *msg)
return -1;
}
/* Retransmission only, ignore closing. */
if (peer->state == CLOSINGD_COMPLETE)
return -1;
if (!peer->closing_sig_received) {
peer_internal_error(peer,
"closing_complete without sending sig!");

Loading…
Cancel
Save