MCPcopy Create free account
hub / github.com/ElementsProject/elements / FindAddressBookEntry

Method FindAddressBookEntry

src/wallet/wallet.cpp:3251–3259  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3249}
3250
3251const CAddressBookData* CWallet::FindAddressBookEntry(const CTxDestination& dest, bool allow_change) const
3252{
3253 const auto& address_book_it = m_address_book.find(dest);
3254 if (address_book_it == m_address_book.end()) return nullptr;
3255 if ((!allow_change) && address_book_it->second.IsChange()) {
3256 return nullptr;
3257 }
3258 return &address_book_it->second;
3259}
3260
3261bool CWallet::UpgradeWallet(int version, bilingual_str& error)
3262{

Callers 7

ScriptIsChangeFunction · 0.80
listaddressgroupingsFunction · 0.80
getaddressinfoFunction · 0.80
backup.cppFile · 0.80
importprivkeyFunction · 0.80
listunspentFunction · 0.80
transactions.cppFile · 0.80

Calls 3

findMethod · 0.80
IsChangeMethod · 0.80
endMethod · 0.45

Tested by

no test coverage detected