aboutsummaryrefslogtreecommitdiff
path: root/src/p2p
diff options
context:
space:
mode:
authormoneromooo-monero <moneromooo-monero@users.noreply.github.com>2017-08-23 13:32:02 +0100
committermoneromooo-monero <moneromooo-monero@users.noreply.github.com>2017-08-23 13:32:02 +0100
commite3c4395ab75cc547465a5146292baf42852805b8 (patch)
tree9b76e519240e9250a6ea81f677149b4f30b34fd4 /src/p2p
parentMerge pull request #2303 (diff)
downloadmonero-e3c4395ab75cc547465a5146292baf42852805b8.tar.xz
p2p: init hashes after deserializing a network address
Fixes multiple connections to the same address
Diffstat (limited to 'src/p2p')
-rw-r--r--src/p2p/net_peerlist_boost_serialization.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/p2p/net_peerlist_boost_serialization.h b/src/p2p/net_peerlist_boost_serialization.h
index 43c5ea5f0..6ea2d48fd 100644
--- a/src/p2p/net_peerlist_boost_serialization.h
+++ b/src/p2p/net_peerlist_boost_serialization.h
@@ -59,6 +59,8 @@ namespace boost
{
a & na.m_ip;
a & na.m_port;
+ if (!typename Archive::is_saving())
+ na.init_ids();
}