Disconnect peers on status handshake timeout. (#2149)
This commit is contained in:
parent
0b33183341
commit
81c25ca4cd
|
@ -115,6 +115,7 @@ p2pProtocol BeaconSync(version = 1,
|
||||||
else:
|
else:
|
||||||
debug "Status response not received in time",
|
debug "Status response not received in time",
|
||||||
peer, error = theirStatus.error
|
peer, error = theirStatus.error
|
||||||
|
await peer.disconnect(FaultOrError)
|
||||||
|
|
||||||
proc status(peer: Peer,
|
proc status(peer: Peer,
|
||||||
theirStatus: StatusMsg,
|
theirStatus: StatusMsg,
|
||||||
|
|
Loading…
Reference in New Issue