From 74567f7ef1b0c550523267c77ad3f8f1d2831c40 Mon Sep 17 00:00:00 2001 From: Nils Schneider Date: Sat, 1 Oct 2011 22:27:02 +0200 Subject: remove code that reads addr.txt in LoadAddreses() --- src/db.cpp | 18 ------------------ 1 file changed, 18 deletions(-) (limited to 'src/db.cpp') diff --git a/src/db.cpp b/src/db.cpp index f2363647a..f69bab4df 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) -- cgit v1.2.3 From 6853e627f12de21b38a178def14c067435517d96 Mon Sep 17 00:00:00 2001 From: Gavin Andresen Date: Fri, 7 Oct 2011 11:02:21 -0400 Subject: Fix build on windows and mac Replaced all occurrences of #if* __WXMSW__ with WIN32, and all occurrences of __WXMAC_OSX__ with MAC_OSX, and made sure those are defined appropriately in the makefile and bitcoin-qt.pro. --- src/db.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/db.cpp') diff --git a/src/db.cpp b/src/db.cpp index f69bab4df..7de1f8df9 100644 --- a/src/db.cpp +++ b/src/db.cpp @@ -658,7 +658,7 @@ int CWalletDB::LoadWallet(CWallet* pwallet) vector vWalletUpgrade; // Modify defaults -#ifndef __WXMSW__ +#ifndef WIN32 // Tray icon sometimes disappears on 9.10 karmic koala 64-bit, leaving no way to access the program fMinimizeToTray = false; fMinimizeOnClose = false; -- cgit v1.2.3