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

Method GetAddressReceiveRequests

src/wallet/wallet.cpp:2866–2878  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2864}
2865
2866std::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
2880bool CWallet::SetAddressReceiveRequest(WalletBatch& batch, const CTxDestination& dest, const std::string& id, const std::string& value)
2881{

Callers 2

BOOST_AUTO_TEST_CASEFunction · 0.80

Calls 3

compareMethod · 0.80
emplace_backMethod · 0.80
sizeMethod · 0.45

Tested by 1

BOOST_AUTO_TEST_CASEFunction · 0.64