aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormoneromooo-monero <moneromooo-monero@users.noreply.github.com>2017-09-10 12:29:48 +0100
committermoneromooo-monero <moneromooo-monero@users.noreply.github.com>2017-09-25 15:48:45 +0100
commit1399e26d7e0a975397c92f4fadaf71f94e23d705 (patch)
tree427dbf42f1c4422c01e125fb0d356cc6a68f534d
parenttx_pool: guard against failure getting tx hash (diff)
downloadmonero-1399e26d7e0a975397c92f4fadaf71f94e23d705.tar.xz
net_peerlist: remove dead code
CID 175290
-rw-r--r--src/p2p/net_peerlist.h21
1 files changed, 1 insertions, 20 deletions
diff --git a/src/p2p/net_peerlist.h b/src/p2p/net_peerlist.h
index a30a05422..8372445aa 100644
--- a/src/p2p/net_peerlist.h
+++ b/src/p2p/net_peerlist.h
@@ -190,35 +190,16 @@ namespace nodetool
if (ver < 6)
return;
- if(ver < 3)
- return;
CRITICAL_REGION_LOCAL(m_peerlist_lock);
- if(ver < 4)
- {
- //loading data from old storage
- peers_indexed_old pio;
- a & pio;
- peers_indexed_from_old(pio, m_peers_white);
- return;
- }
#if 0
// trouble loading more than one peer, can't find why
a & m_peers_white;
a & m_peers_gray;
+ a & m_peers_anchor;
#else
serialize_peers(a, m_peers_white, peerlist_entry(), ver);
serialize_peers(a, m_peers_gray, peerlist_entry(), ver);
-#endif
-
- if(ver < 5) {
- return;
- }
-
-#if 0
- // trouble loading more than one peer, can't find why
- a & m_peers_anchor;
-#else
serialize_peers(a, m_peers_anchor, anchor_peerlist_entry(), ver);
#endif
}