qt: protect SetAddressBook with cs_wallet lock everywhere
This commit is contained in:
parent
aaf8d15708
commit
28352af060
1 changed files with 1 additions and 0 deletions
|
@ -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…
Reference in a new issue