diff options
author | John Newbery <john@johnnewbery.com> | 2021-08-05 11:09:55 +0100 |
---|---|---|
committer | John Newbery <john@johnnewbery.com> | 2021-08-18 14:00:52 +0100 |
commit | 181a1207ba6bd179d181f3e2534ef8676565ce72 (patch) | |
tree | 3732dfba53c61dfd09383a18ff86325e593394eb /src/net.cpp | |
parent | e35c4a3d80578e8feff1f1ae5db81d3c0992a865 (diff) |
[addrman] Move peers.dat parsing to init.cpp
Diffstat (limited to 'src/net.cpp')
-rw-r--r-- | src/net.cpp | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/src/net.cpp b/src/net.cpp index be419648d3..57b8844d6b 100644 --- a/src/net.cpp +++ b/src/net.cpp @@ -2534,22 +2534,6 @@ bool CConnman::Start(CScheduler& scheduler, const Options& connOptions) AddAddrFetch(strDest); } - if (m_client_interface) { - m_client_interface->InitMessage(_("Loading P2P addresses…").translated); - } - // Load addresses from peers.dat - int64_t nStart = GetTimeMillis(); - { - CAddrDB adb; - if (adb.Read(addrman)) - LogPrintf("Loaded %i addresses from peers.dat %dms\n", addrman.size(), GetTimeMillis() - nStart); - else { - addrman.Clear(); // Addrman can be in an inconsistent state after failure, reset it - LogPrintf("Recreating peers.dat\n"); - DumpAddresses(); - } - } - if (m_use_addrman_outgoing) { // Load addresses from anchors.dat m_anchors = ReadAnchors(gArgs.GetDataDirNet() / ANCHORS_DATABASE_FILENAME); |