channeld: handle ping instead of crashing when expecting reestablish.

Fixes: #592
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
Rusty Russell 2018-01-14 14:55:50 +10:30
parent 447afa923d
commit 4c45afafdc

View File

@ -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)) {