mirror of
https://github.com/status-im/nimbus-eth2.git
synced 2025-01-10 22:36:01 +00:00
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:
|
||||
debug "Status response not received in time",
|
||||
peer, error = theirStatus.error
|
||||
await peer.disconnect(FaultOrError)
|
||||
|
||||
proc status(peer: Peer,
|
||||
theirStatus: StatusMsg,
|
||||
|
Loading…
x
Reference in New Issue
Block a user