mirror of
https://codeberg.org/anoncontributorxmr/monero.git
synced 2024-11-23 10:37:37 -07:00
net_peerlist: remove dead code
CID 175290
This commit is contained in:
parent
50e096987b
commit
1399e26d7e
@ -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 New Issue
Block a user