aboutsummaryrefslogtreecommitdiff
path: root/db.cpp
diff options
context:
space:
mode:
authors_nakamoto <s_nakamoto@1a98c847-1fd6-4fd8-948a-caf3550aa51b>2010-01-28 00:31:00 +0000
committers_nakamoto <s_nakamoto@1a98c847-1fd6-4fd8-948a-caf3550aa51b>2010-01-28 00:31:00 +0000
commitcb0f89646f065800d38d7cfc10ba1e855563296a (patch)
tree2cef9a44c911d1a80ef48bc74d50e7cc86b512b9 /db.cpp
parent9a36562347122482fd1e6e77c74df66ad8cf2c3f (diff)
simplify AddAddress,
readcompactsize limit, fixed a 64-bit compile error in serialize.h, change status "# blocks" to "# confirmations" and widen the column. git-svn-id: https://bitcoin.svn.sourceforge.net/svnroot/bitcoin/trunk@53 1a98c847-1fd6-4fd8-948a-caf3550aa51b
Diffstat (limited to 'db.cpp')
-rw-r--r--db.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/db.cpp b/db.cpp
index c33f71ef79..77f8e1e0dd 100644
--- a/db.cpp
+++ b/db.cpp
@@ -134,8 +134,6 @@ void CDB::Close()
CRITICAL_BLOCK(cs_db)
--mapFileUseCount[strFile];
-
- RandAddSeed();
}
void CloseDb(const string& strFile)
@@ -456,7 +454,7 @@ bool CAddrDB::LoadAddresses()
CAddress addr(psz, NODE_NETWORK);
addr.nTime = 0; // so it won't relay unless successfully connected
if (addr.IsValid())
- AddAddress(*this, addr);
+ AddAddress(addr);
}
}
catch (...) { }