aboutsummaryrefslogtreecommitdiff
path: root/src/wallet.cpp
diff options
context:
space:
mode:
authorCozz Lovan <cozzlovan@yahoo.com>2014-01-14 05:05:43 +0100
committerCozz Lovan <cozzlovan@yahoo.com>2014-01-19 18:21:54 +0100
commit8476d5d407645229faf3017b390f041ce0666247 (patch)
tree3bd9c035a61b8f066b81662b0b77743eee995dfe /src/wallet.cpp
parentb10e147096b0e27fdff8c22029bc8b7a1a14f042 (diff)
downloadbitcoin-8476d5d407645229faf3017b390f041ce0666247.tar.xz
[Qt] Permanently store requested payments in wallet
Diffstat (limited to 'src/wallet.cpp')
-rw-r--r--src/wallet.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/wallet.cpp b/src/wallet.cpp
index f4c14b437c..84642bee62 100644
--- a/src/wallet.cpp
+++ b/src/wallet.cpp
@@ -2023,6 +2023,9 @@ void CWallet::GetKeyBirthTimes(std::map<CKeyID, int64_t> &mapKeyBirth) const {
bool CWallet::AddDestData(const CTxDestination &dest, const std::string &key, const std::string &value)
{
+ if (boost::get<CNoDestination>(&dest))
+ return false;
+
mapAddressBook[dest].destdata.insert(std::make_pair(key, value));
if (!fFileBacked)
return true;