aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGavin Andresen <gavinandresen@gmail.com>2011-10-05 07:41:07 -0700
committerGavin Andresen <gavinandresen@gmail.com>2011-10-05 07:41:07 -0700
commitff3b2355803c050964473ac986bdcb0de8e65f57 (patch)
treeb4b67f0eb07061845da024e65cac611fef30ff09
parentb898c8fce687de9320bfae8dd2392e92c5464831 (diff)
parent74567f7ef1b0c550523267c77ad3f8f1d2831c40 (diff)
Merge pull request #545 from tcatm/remove-addr.txt
remove code that reads addr.txt in LoadAddreses()
-rw-r--r--src/db.cpp18
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)