MCPcopy Create free account
hub / github.com/bitcoin/bitcoin / FindAddressBookEntry

Method FindAddressBookEntry

src/wallet/wallet.cpp:3321–3329  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3319}
3320
3321const CAddressBookData* CWallet::FindAddressBookEntry(const CTxDestination& dest, bool allow_change) const
3322{
3323 const auto& address_book_it = m_address_book.find(dest);
3324 if (address_book_it == m_address_book.end()) return nullptr;
3325 if ((!allow_change) && address_book_it->second.IsChange()) {
3326 return nullptr;
3327 }
3328 return &address_book_it->second;
3329}
3330
3331void CWallet::postInitProcess()
3332{

Callers 6

ScriptIsChangeFunction · 0.80
getAddressMethod · 0.80
listaddressgroupingsFunction · 0.80
getaddressinfoFunction · 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