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

Method GetLabelAddresses

src/wallet/wallet.cpp:2568–2581  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2566}
2567
2568std::set<CTxDestination> CWallet::GetLabelAddresses(const std::string& label) const
2569{
2570 AssertLockHeld(cs_wallet);
2571 std::set<CTxDestination> result;
2572 for (const std::pair<const CTxDestination, CAddressBookData>& item : m_address_book)
2573 {
2574 if (item.second.IsChange()) continue;
2575 const CTxDestination& address = item.first;
2576 const std::string& strName = item.second.GetLabel();
2577 if (strName == label)
2578 result.insert(address);
2579 }
2580 return result;
2581}
2582
2583bool ReserveDestination::GetReservedDestination(CTxDestination& dest, bool internal, bilingual_str& error)
2584{

Callers 1

coins.cppFile · 0.80

Calls 3

IsChangeMethod · 0.80
GetLabelMethod · 0.80
insertMethod · 0.45

Tested by

no test coverage detected