mirror of
https://github.com/monero-project/monero.git
synced 2024-11-18 00:37:43 +00:00
net_peerlist: remove dead code
CID 175290
This commit is contained in:
parent
50e096987b
commit
1399e26d7e
1 changed files with 1 additions and 20 deletions
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue