| 2566 | } |
| 2567 | |
| 2568 | std::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 | |
| 2583 | bool ReserveDestination::GetReservedDestination(CTxDestination& dest, bool internal, bilingual_str& error) |
| 2584 | { |