qt: protect SetAddressBook with cs_wallet lock everywhere

This commit is contained in:
Wladimir J. van der Laan 2013-12-15 13:54:07 +01:00
parent aaf8d15708
commit 28352af060

View file

@ -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");