aboutsummaryrefslogtreecommitdiff
path: root/db.h
diff options
context:
space:
mode:
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++;