aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorWladimir J. van der Laan <laanwj@gmail.com>2013-12-15 13:54:07 +0100
committerWladimir J. van der Laan <laanwj@gmail.com>2014-01-06 13:36:24 +0100
commit28352af0606cea00cd80e8f353bda02fadf2222c (patch)
tree14ea955b09dd4d9bf86f5de2be590457a3d39690 /src
parentaaf8d157082ec0aec03c734ab3368fa8e2c4556c (diff)
qt: protect SetAddressBook with cs_wallet lock everywhere
Diffstat (limited to 'src')
-rw-r--r--src/qt/paymentserver.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/qt/paymentserver.cpp b/src/qt/paymentserver.cpp
index ba5c06064f..cfa87c16ba 100644
--- a/src/qt/paymentserver.cpp
+++ b/src/qt/paymentserver.cpp
@@ -548,6 +548,7 @@ void PaymentServer::fetchPaymentACK(CWallet* wallet, SendCoinsRecipient recipien
else {
CPubKey newKey;
if (wallet->GetKeyFromPool(newKey)) {
+ LOCK(wallet->cs_wallet); // SetAddressBook
CKeyID keyID = newKey.GetID();
wallet->SetAddressBook(keyID, strAccount, "refund");