Skip to content

Commit ff3b235

Browse files
committed
Merge pull request bitcoin#545 from tcatm/remove-addr.txt
remove code that reads addr.txt in LoadAddreses()
2 parents b898c8f + 74567f7 commit ff3b235

File tree

1 file changed

+0
-18
lines changed

1 file changed

+0
-18
lines changed

src/db.cpp

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -520,24 +520,6 @@ bool CAddrDB::LoadAddresses()
520520
{
521521
CRITICAL_BLOCK(cs_mapAddresses)
522522
{
523-
// Load user provided addresses
524-
CAutoFile filein = fopen((GetDataDir() + "/addr.txt").c_str(), "rt");
525-
if (filein)
526-
{
527-
try
528-
{
529-
char psz[1000];
530-
while (fgets(psz, sizeof(psz), filein))
531-
{
532-
CAddress addr(psz, false, NODE_NETWORK);
533-
addr.nTime = 0; // so it won't relay unless successfully connected
534-
if (addr.IsValid())
535-
AddAddress(addr);
536-
}
537-
}
538-
catch (...) { }
539-
}
540-
541523
// Get cursor
542524
Dbc* pcursor = GetCursor();
543525
if (!pcursor)

0 commit comments

Comments
 (0)