aboutsummaryrefslogtreecommitdiff
path: root/db.h
diff options
context:
space:
mode:
authors_nakamoto <s_nakamoto@1a98c847-1fd6-4fd8-948a-caf3550aa51b>2010-05-26 00:05:26 +0000
committers_nakamoto <s_nakamoto@1a98c847-1fd6-4fd8-948a-caf3550aa51b>2010-05-26 00:05:26 +0000
commit42605ce8bcc9bd01b86491c74fee14de77960868 (patch)
tree4b2b30223b78d51882769886945c63f5427a812b /db.h
parent124baa4ccbf3ecb78eab7ecdd40105fb54ee0369 (diff)
downloadbitcoin-42605ce8bcc9bd01b86491c74fee14de77960868.tar.xz
better prevention of inventory relaying during initial download,v0.2.9
message checksum between nodes with 0.2.9 or higher, optimization level up from -O0 to -O2, rpc functions: setlabel, getlabel, getaddressesbylabel, getreceivedbyaddress, getreceivedbylabel, listreceivedbyaddress, listreceivedbylabel -- version 0.2.9 git-svn-id: https://bitcoin.svn.sourceforge.net/svnroot/bitcoin/trunk@78 1a98c847-1fd6-4fd8-948a-caf3550aa51b
Diffstat (limited to 'db.h')
-rw-r--r--db.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/db.h b/db.h
index fb4e9268c8..0b778d5fea 100644
--- a/db.h
+++ b/db.h
@@ -328,6 +328,8 @@ public:
bool EraseName(const string& strAddress)
{
+ // This should only be used for sending addresses, never for receiving addresses,
+ // receiving addresses must always have an address book entry if they're not change return.
CRITICAL_BLOCK(cs_mapAddressBook)
mapAddressBook.erase(strAddress);
nWalletDBUpdated++;