diff --git a/src/wallet/rpcwallet.cpp b/src/wallet/rpcwallet.cpp --- a/src/wallet/rpcwallet.cpp +++ b/src/wallet/rpcwallet.cpp @@ -412,7 +412,7 @@ // deleted, and if we wouldn't do this, the record would stick around // forever. bool found_address = false; - for (const std::pair &item : + for (const std::pair &item : pwallet->mapAddressBook) { if (item.second.name == label) { found_address = true;