From 8133a642608668064a5fd99409cf86a32845a0d8 Mon Sep 17 00:00:00 2001 From: moneromooo-monero Date: Wed, 23 Aug 2017 13:32:02 +0100 Subject: [PATCH] p2p: init hashes after deserializing a network address Fixes multiple connections to the same address --- src/p2p/net_peerlist_boost_serialization.h | 2 ++ 1 file changed, 2 insertions(+) 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(); }