diff options
author | Nils Schneider <nils.schneider@gmail.com> | 2011-10-01 22:27:02 +0200 |
---|---|---|
committer | Nils Schneider <nils.schneider@gmail.com> | 2011-10-01 22:27:02 +0200 |
commit | 74567f7ef1b0c550523267c77ad3f8f1d2831c40 (patch) | |
tree | 633d8889098743738359a9b6f1349a4f57b95a41 /src/db.cpp | |
parent | f4769e44a326f61bdf47fa39346e1293b97e31c4 (diff) |
remove code that reads addr.txt in LoadAddreses()
Diffstat (limited to 'src/db.cpp')
-rw-r--r-- | src/db.cpp | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/src/db.cpp b/src/db.cpp index f2363647aa..f69bab4dff 100644 --- a/src/db.cpp +++ b/src/db.cpp @@ -520,24 +520,6 @@ bool CAddrDB::LoadAddresses() { CRITICAL_BLOCK(cs_mapAddresses) { - // Load user provided addresses - CAutoFile filein = fopen((GetDataDir() + "/addr.txt").c_str(), "rt"); - if (filein) - { - try - { - char psz[1000]; - while (fgets(psz, sizeof(psz), filein)) - { - CAddress addr(psz, false, NODE_NETWORK); - addr.nTime = 0; // so it won't relay unless successfully connected - if (addr.IsValid()) - AddAddress(addr); - } - } - catch (...) { } - } - // Get cursor Dbc* pcursor = GetCursor(); if (!pcursor) |