diff options
| author | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2017-08-23 13:32:02 +0100 |
|---|---|---|
| committer | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2017-08-23 13:32:02 +0100 |
| commit | e3c4395ab75cc547465a5146292baf42852805b8 (patch) | |
| tree | 9b76e519240e9250a6ea81f677149b4f30b34fd4 /src | |
| parent | 4466b6d1b08d827f3bdddb1cab8ca05833b65437 (diff) | |
| download | monzero-core-e3c4395ab75cc547465a5146292baf42852805b8.tar.gz monzero-core-e3c4395ab75cc547465a5146292baf42852805b8.tar.xz monzero-core-e3c4395ab75cc547465a5146292baf42852805b8.zip | |
p2p: init hashes after deserializing a network address
Fixes multiple connections to the same address
Diffstat (limited to 'src')
| -rw-r--r-- | src/p2p/net_peerlist_boost_serialization.h | 2 |
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(); } |
