Skip to content

Commit

Permalink
Fix the build with the latest Chronos
Browse files Browse the repository at this point in the history
  • Loading branch information
zah committed Aug 15, 2019
1 parent 93336da commit f5db2dd
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions beacon_chain/sync_protocol.nim
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit f5db2dd

Please sign in to comment.