Fix the build with the latest Chronos

This commit is contained in:
Zahary Karadjov 2019-08-15 20:41:58 +02:00
parent 93336daf7f
commit f5db2dd7b3
No known key found for this signature in database
GPG Key ID: C8936F8A3073D609
1 changed files with 4 additions and 3 deletions

View File

@ -94,9 +94,10 @@ p2pProtocol BeaconSync(version = 1,
bestSlot = headBlock.slot
latestFinalizedEpoch = finalizedHead.slot.compute_epoch_of_slot()
let m = await peer.hello(node.forkVersion,
finalizedHead.blck.root, latestFinalizedEpoch,
bestRoot, bestSlot, timeout = 10.seconds)
let handshakeFut = peer.hello(node.forkVersion,
finalizedHead.blck.root, latestFinalizedEpoch,
bestRoot, bestSlot, timeout = 10.seconds)
let m = await handshakeFut
if m.forkVersion != node.forkVersion:
await peer.disconnect(IrrelevantNetwork)