diff options
| author | s_nakamoto <s_nakamoto@1a98c847-1fd6-4fd8-948a-caf3550aa51b> | 2010-10-23 17:43:53 +0000 |
|---|---|---|
| committer | s_nakamoto <s_nakamoto@1a98c847-1fd6-4fd8-948a-caf3550aa51b> | 2010-10-23 17:43:53 +0000 |
| commit | c891967b6fcab2e8dc4ce0c787312b36c07efa4d (patch) | |
| tree | 8cf0e07b5ba8f88bfdbdb11b70722014d424767c /db.cpp | |
| parent | testnet and keypoololdest added to RPC getinfo output. And RPC now sends pro... (diff) | |
| download | discoin-c891967b6fcab2e8dc4ce0c787312b36c07efa4d.tar.xz discoin-c891967b6fcab2e8dc4ce0c787312b36c07efa4d.zip | |
bugfixes from Dean Gores,
addr system changes,
make sure no gen before block 74000
git-svn-id: https://bitcoin.svn.sourceforge.net/svnroot/bitcoin/trunk@173 1a98c847-1fd6-4fd8-948a-caf3550aa51b
Diffstat (limited to 'db.cpp')
| -rw-r--r-- | db.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -503,6 +503,11 @@ bool CAddrDB::WriteAddress(const CAddress& addr) return Write(make_pair(string("addr"), addr.GetKey()), addr); } +bool CAddrDB::EraseAddress(const CAddress& addr) +{ + return Erase(make_pair(string("addr"), addr.GetKey())); +} + bool CAddrDB::LoadAddresses() { CRITICAL_BLOCK(cs_mapAddresses) @@ -554,11 +559,6 @@ bool CAddrDB::LoadAddresses() pcursor->close(); printf("Loaded %d addresses\n", mapAddresses.size()); - - // Fix for possible bug that manifests in mapAddresses.count in irc.cpp, - // just need to call count here and it doesn't happen there. The bug was the - // pack pragma in irc.cpp and has been fixed, but I'm not in a hurry to delete this. - mapAddresses.count(vector<unsigned char>(18)); } return true; |