mirror of https://github.com/status-im/nim-eth.git
Fix the build of Nimbus
This commit is contained in:
parent
c10da74b77
commit
abafbc3a73
|
@ -46,7 +46,7 @@ p2pProtocol eth(version = protocolVersion,
|
|||
chain = network.chain
|
||||
bestBlock = chain.getBestBlockHeader
|
||||
|
||||
let m = await peer.handhake(timeout = 10.seconds,
|
||||
let m = await peer.handshake(timeout = chronos.seconds(10),
|
||||
status(protocolVersion,
|
||||
network.networkId,
|
||||
bestBlock.difficulty,
|
||||
|
|
|
@ -208,7 +208,7 @@ p2pProtocol les(version = lesVersion,
|
|||
lesProperties.add(keyAnnounceType => lesNetwork.ourAnnounceType)
|
||||
|
||||
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)
|
||||
peerGenesisHash = s.values.getRequiredValue(keyGenesisHash, KeccakHash)
|
||||
peerLesVersion = s.values.getRequiredValue(keyProtocolVersion, uint)
|
||||
|
|
Loading…
Reference in New Issue