diff --git a/src/qt/addresstablemodel.cpp b/src/qt/addresstablemodel.cpp --- a/src/qt/addresstablemodel.cpp +++ b/src/qt/addresstablemodel.cpp @@ -361,12 +361,8 @@ } // Add entry - { - LOCK(wallet->cs_wallet); - wallet->SetAddressBook( - DecodeDestination(strAddress, wallet->chainParams), strLabel, - (type == Send ? "send" : "receive")); - } + wallet->SetAddressBook(DecodeDestination(strAddress, wallet->chainParams), + strLabel, (type == Send ? "send" : "receive")); return QString::fromStdString(strAddress); } @@ -380,11 +376,8 @@ // Also refuse to remove receiving addresses. return false; } - { - LOCK(wallet->cs_wallet); - wallet->DelAddressBook( - DecodeDestination(rec->address.toStdString(), wallet->chainParams)); - } + wallet->DelAddressBook( + DecodeDestination(rec->address.toStdString(), wallet->chainParams)); return true; }