mirror of
https://github.com/ElementsProject/lightning.git
synced 2025-01-18 21:35:11 +01:00
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:
parent
447afa923d
commit
4c45afafdc
@ -1785,6 +1785,11 @@ again:
|
|||||||
goto again;
|
goto again;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (fromwire_peektype(msg) == WIRE_PING) {
|
||||||
|
handle_ping(peer, msg);
|
||||||
|
goto again;
|
||||||
|
}
|
||||||
|
|
||||||
if (!fromwire_channel_reestablish(msg, NULL, &channel_id,
|
if (!fromwire_channel_reestablish(msg, NULL, &channel_id,
|
||||||
&next_local_commitment_number,
|
&next_local_commitment_number,
|
||||||
&next_remote_revocation_number)) {
|
&next_remote_revocation_number)) {
|
||||||
|
Loading…
Reference in New Issue
Block a user