From 837240cb5ae00fab0b9c3cf0e539da556856da59 Mon Sep 17 00:00:00 2001 From: Gav Wood Date: Sat, 22 Feb 2014 22:20:50 +0000 Subject: [PATCH] New NameReg --- alethzero/MainWin.cpp | 2 +- libethereum/PeerNetwork.cpp | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/alethzero/MainWin.cpp b/alethzero/MainWin.cpp index f0f300b6f..9c2d46e0c 100644 --- a/alethzero/MainWin.cpp +++ b/alethzero/MainWin.cpp @@ -105,7 +105,7 @@ Main::~Main() writeSettings(); } -static const Address c_nameContract(fromUserHex("c848b90ecdd48aae27d4a5783a1c767c42b53ea2")); +static const Address c_nameContract(fromUserHex("8c81ec1f8039e9dd3d21e02af91f7a3629bce784")); QString Main::pretty(eth::Address _a) const { diff --git a/libethereum/PeerNetwork.cpp b/libethereum/PeerNetwork.cpp index 203fdb3a9..828caec46 100644 --- a/libethereum/PeerNetwork.cpp +++ b/libethereum/PeerNetwork.cpp @@ -768,6 +768,7 @@ void PeerServer::populateAddresses() char host[NI_MAXHOST]; if (getnameinfo(ifa->ifa_addr, sizeof(struct sockaddr_in), host, NI_MAXHOST, NULL, 0, NI_NUMERICHOST)) continue; + // TODO: Make exception safe when no internet. auto it = r.resolve({host, "30303"}); bi::tcp::endpoint ep = it->endpoint(); bi::address ad = ep.address();