From 0206496663d2a47c30d3c99149ebb25ecab1ddad Mon Sep 17 00:00:00 2001 From: Zahary Karadjov Date: Tue, 12 Mar 2019 15:14:30 +0200 Subject: [PATCH] Fix a build error --- beacon_chain/eth2_network.nim | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/beacon_chain/eth2_network.nim b/beacon_chain/eth2_network.nim index c865308ec..e4a53b31f 100644 --- a/beacon_chain/eth2_network.nim +++ b/beacon_chain/eth2_network.nim @@ -20,15 +20,15 @@ when useDEVP2P: template libp2pProtocol*(name, version: string) {.pragma.} - proc createEth2Node*(tcpPort, udpPort: Port): Future[Eth2Node] {.async.} = + proc createEth2Node*(tcpPort, udpPort: Port): Future[EthereumNode] {.async.} = let keys = newKeyPair() address = Address(ip: parseIpAddress("127.0.0.1"), tcpPort: tcpPort, udpPort: udpPort) - newEthereumNode(keys, address, 0, - nil, clientId, minPeers = 1) + return newEthereumNode(keys, address, 0, + nil, clientId, minPeers = 1) proc saveConnectionAddressFile*(node: Eth2Node, filename: string) = writeFile(filename, $node.listeningAddress)