MCPcopy Create free account
hub / github.com/BTCGPU/BTCGPU / AddDestData

Method AddDestData

src/wallet/wallet.cpp:3903–3910  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3901}
3902
3903bool CWallet::AddDestData(const CTxDestination &dest, const std::string &key, const std::string &value)
3904{
3905 if (boost::get<CNoDestination>(&dest))
3906 return false;
3907
3908 mapAddressBook[dest].destdata.insert(std::make_pair(key, value));
3909 return WalletBatch(*database).WriteDestData(EncodeDestination(dest), key, value);
3910}
3911
3912bool CWallet::EraseDestData(const CTxDestination &dest, const std::string &key)
3913{

Callers 2

BOOST_AUTO_TEST_CASEFunction · 0.80
addDestDataMethod · 0.80

Calls 4

WalletBatchClass · 0.85
EncodeDestinationFunction · 0.85
WriteDestDataMethod · 0.80
insertMethod · 0.45

Tested by 1

BOOST_AUTO_TEST_CASEFunction · 0.64