Disconnect peers on status handshake timeout. (#2149)

This commit is contained in:
Eugene Kabanov 2020-12-07 20:47:07 +02:00 committed by GitHub
parent 0b33183341
commit 81c25ca4cd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -114,7 +114,8 @@ p2pProtocol BeaconSync(version = 1,
ourStatus, theirStatus.get())
else:
debug "Status response not received in time",
peer, error = theirStatus.error
peer, error = theirStatus.error
await peer.disconnect(FaultOrError)
proc status(peer: Peer,
theirStatus: StatusMsg,