aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRiccardo Spagni <ric@spagni.net>2017-09-02 11:29:40 +0200
committerRiccardo Spagni <ric@spagni.net>2017-09-02 11:29:40 +0200
commit5551fcf60b0175751f9809d29097dfc0bf5f6d48 (patch)
tree707785e5fee702502c4776e808c0cbf53dbd6295
parentMerge pull request #2316 (diff)
parentp2p: init hashes after deserializing a network address (diff)
downloadmonero-5551fcf60b0175751f9809d29097dfc0bf5f6d48.tar.xz
Merge pull request #2329
e3c4395a p2p: init hashes after deserializing a network address (moneromooo-monero)
-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();
}