MCPcopy Create free account
hub / github.com/bitcoin/bitcoin / WriteAddressPreviouslySpent

Method WriteAddressPreviouslySpent

src/wallet/walletdb.cpp:1225–1229  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1223}
1224
1225bool WalletBatch::WriteAddressPreviouslySpent(const CTxDestination& dest, bool previously_spent)
1226{
1227 auto key{std::make_pair(DBKeys::DESTDATA, std::make_pair(EncodeDestination(dest), std::string("used")))};
1228 return previously_spent ? WriteIC(key, std::string("1")) : EraseIC(key);
1229}
1230
1231bool WalletBatch::WriteAddressReceiveRequest(const CTxDestination& dest, const std::string& id, const std::string& receive_request)
1232{

Callers 4

ExportWatchOnlyWalletFunction · 0.80
ApplyMigrationDataMethod · 0.80
BOOST_FIXTURE_TEST_CASEFunction · 0.80

Calls 1

EncodeDestinationFunction · 0.85

Tested by 1

BOOST_FIXTURE_TEST_CASEFunction · 0.64