Fix the build of Nimbus

This commit is contained in:
Zahary Karadjov 2019-03-26 18:28:54 +02:00
parent c10da74b77
commit abafbc3a73
2 changed files with 7 additions and 7 deletions

View File

@ -46,12 +46,12 @@ p2pProtocol eth(version = protocolVersion,
chain = network.chain chain = network.chain
bestBlock = chain.getBestBlockHeader bestBlock = chain.getBestBlockHeader
let m = await peer.handhake(timeout = 10.seconds, let m = await peer.handshake(timeout = chronos.seconds(10),
status(protocolVersion, status(protocolVersion,
network.networkId, network.networkId,
bestBlock.difficulty, bestBlock.difficulty,
bestBlock.blockHash, bestBlock.blockHash,
chain.genesisHash)) chain.genesisHash))
if m.networkId == network.networkId and m.genesisHash == chain.genesisHash: if m.networkId == network.networkId and m.genesisHash == chain.genesisHash:
trace "suitable peer", peer trace "suitable peer", peer

View File

@ -208,7 +208,7 @@ p2pProtocol les(version = lesVersion,
lesProperties.add(keyAnnounceType => lesNetwork.ourAnnounceType) lesProperties.add(keyAnnounceType => lesNetwork.ourAnnounceType)
let let
s = await peer.handshake(timeout = 10.seconds, status(lesProperties)) s = await peer.handshake(timeout = chronos.seconds(10), status(lesProperties))
peerNetworkId = s.values.getRequiredValue(keyNetworkId, uint) peerNetworkId = s.values.getRequiredValue(keyNetworkId, uint)
peerGenesisHash = s.values.getRequiredValue(keyGenesisHash, KeccakHash) peerGenesisHash = s.values.getRequiredValue(keyGenesisHash, KeccakHash)
peerLesVersion = s.values.getRequiredValue(keyProtocolVersion, uint) peerLesVersion = s.values.getRequiredValue(keyProtocolVersion, uint)