aboutsummaryrefslogtreecommitdiff
path: root/src/wallet/rpcdump.cpp
diff options
context:
space:
mode:
authorLuke Dashjr <luke-jr+git@utopios.org>2020-02-22 04:27:03 +0000
committerLuke Dashjr <luke-jr+git@utopios.org>2020-04-02 16:37:41 +0000
commit6d2905f57aaeb3ec3b63d31043f7673ca10003f2 (patch)
tree21fc53848fc75935cd77f95faec2fbd5fea375fa /src/wallet/rpcdump.cpp
parentc751d886f499257627b308b11ffaa51c22db6cc0 (diff)
Wallet: Avoid unnecessary/redundant m_address_book lookups
Diffstat (limited to 'src/wallet/rpcdump.cpp')
-rw-r--r--src/wallet/rpcdump.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/wallet/rpcdump.cpp b/src/wallet/rpcdump.cpp
index 40ea51e464..e1d8f51c4a 100644
--- a/src/wallet/rpcdump.cpp
+++ b/src/wallet/rpcdump.cpp
@@ -66,7 +66,7 @@ static bool GetWalletAddressesForKey(LegacyScriptPubKeyMan* spk_man, const CWall
strAddr += ",";
}
strAddr += EncodeDestination(dest);
- strLabel = EncodeDumpString(pwallet->m_address_book.at(dest).name);
+ strLabel = EncodeDumpString(address_book_entry->name);
fLabelFound = true;
}
}