| 2864 | } |
| 2865 | |
| 2866 | std::vector<std::string> CWallet::GetAddressReceiveRequests() const |
| 2867 | { |
| 2868 | const std::string prefix{"rr"}; |
| 2869 | std::vector<std::string> values; |
| 2870 | for (const auto& address : m_address_book) { |
| 2871 | for (const auto& data : address.second.destdata) { |
| 2872 | if (!data.first.compare(0, prefix.size(), prefix)) { |
| 2873 | values.emplace_back(data.second); |
| 2874 | } |
| 2875 | } |
| 2876 | } |
| 2877 | return values; |
| 2878 | } |
| 2879 | |
| 2880 | bool CWallet::SetAddressReceiveRequest(WalletBatch& batch, const CTxDestination& dest, const std::string& id, const std::string& value) |
| 2881 | { |