Browse Source

qt: protect SetAddressBook with cs_wallet lock everywhere

pull/1/head
Wladimir J. van der Laan 9 years ago
parent
commit
28352af060
  1. 1
      src/qt/paymentserver.cpp

1
src/qt/paymentserver.cpp

@ -548,6 +548,7 @@ void PaymentServer::fetchPaymentACK(CWallet* wallet, SendCoinsRecipient recipien @@ -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");

Loading…
Cancel
Save