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

Method saveReceiveRequest

src/qt/walletmodel.cpp:489–501  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

487}
488
489bool WalletModel::saveReceiveRequest(const std::string &sAddress, const int64_t nId, const std::string &sRequest)
490{
491 CTxDestination dest = DecodeDestination(sAddress);
492
493 std::stringstream ss;
494 ss << nId;
495 std::string key = "rr" + ss.str(); // "rr" prefix = "receive request" in destdata
496
497 if (sRequest.empty())
498 return m_wallet->eraseDestData(dest, key);
499 else
500 return m_wallet->addDestData(dest, key, sRequest);
501}
502
503bool WalletModel::bumpFee(uint256 hash)
504{

Callers 2

removeRowsMethod · 0.80
addNewRequestMethod · 0.80

Calls 5

DecodeDestinationFunction · 0.85
strMethod · 0.80
eraseDestDataMethod · 0.80
addDestDataMethod · 0.80
emptyMethod · 0.45

Tested by

no test coverage detected