diff --git a/beacon_chain/eth2_discovery.nim b/beacon_chain/eth2_discovery.nim index 094e89e4a..b228aaad7 100644 --- a/beacon_chain/eth2_discovery.nim +++ b/beacon_chain/eth2_discovery.nim @@ -25,7 +25,7 @@ proc new*(T: type Eth2DiscoveryProtocol, pk = initPrivateKey(rawPrivKeyBytes) db = DiscoveryDB.init(newMemoryDB()) - newProtocol(pk, db, ip, Port conf.tcpPort, Port conf.udpPort) + newProtocol(pk, db, ip, conf.tcpPort, conf.udpPort) proc toENode*(a: MultiAddress): Result[ENode, cstring] = if not IPFS.match(a): diff --git a/beacon_chain/eth2_network.nim b/beacon_chain/eth2_network.nim index 799bd89f4..a7daed141 100644 --- a/beacon_chain/eth2_network.nim +++ b/beacon_chain/eth2_network.nim @@ -141,7 +141,7 @@ when networkBackend in [libp2p, libp2pDaemon]: bootstrapNodes: seq[ENode]): Future[Eth2Node] {.async.} = var (extIp, extTcpPort, _) = setupNat(conf) - hostAddress = tcpEndPoint(globalListeningAddr, Port conf.tcpPort) + hostAddress = tcpEndPoint(globalListeningAddr, conf.tcpPort) announcedAddresses = if extIp == globalListeningAddr: @[] else: @[tcpEndPoint(extIp, extTcpPort)] diff --git a/beacon_chain/version.nim b/beacon_chain/version.nim index 17b0f1f4a..06b9eb2fb 100644 --- a/beacon_chain/version.nim +++ b/beacon_chain/version.nim @@ -4,7 +4,7 @@ type libp2pDaemon const - NETWORK_TYPE {.strdefine.} = "libp2p_daemon" + NETWORK_TYPE {.strdefine.} = "libp2p" networkBackend* = when NETWORK_TYPE == "libp2p": libp2p elif NETWORK_TYPE == "libp2p_daemon": libp2pDaemon