diff options
author | Wladimir J. van der Laan <laanwj@gmail.com> | 2013-12-15 13:54:07 +0100 |
---|---|---|
committer | Wladimir J. van der Laan <laanwj@gmail.com> | 2014-01-06 13:36:24 +0100 |
commit | 28352af0606cea00cd80e8f353bda02fadf2222c (patch) | |
tree | 14ea955b09dd4d9bf86f5de2be590457a3d39690 /src/qt | |
parent | aaf8d157082ec0aec03c734ab3368fa8e2c4556c (diff) |
qt: protect SetAddressBook with cs_wallet lock everywhere
Diffstat (limited to 'src/qt')
-rw-r--r-- | src/qt/paymentserver.cpp | 1 |
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"); |