Browse Source

channeld: handle ping instead of crashing when expecting reestablish.

Fixes: #592
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
ppa-0.6.1
Rusty Russell 7 years ago
parent
commit
4c45afafdc
  1. 5
      channeld/channel.c

5
channeld/channel.c

@ -1785,6 +1785,11 @@ again:
goto again;
}
if (fromwire_peektype(msg) == WIRE_PING) {
handle_ping(peer, msg);
goto again;
}
if (!fromwire_channel_reestablish(msg, NULL, &channel_id,
&next_local_commitment_number,
&next_remote_revocation_number)) {

Loading…
Cancel
Save