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

Method IsSpentKey

src/wallet/wallet.cpp:1030–1041  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1028}
1029
1030bool CWallet::IsSpentKey(const CScript& scriptPubKey) const
1031{
1032 AssertLockHeld(cs_wallet);
1033 CTxDestination dest;
1034 if (!ExtractDestination(scriptPubKey, dest)) {
1035 return false;
1036 }
1037 if (IsAddressPreviouslySpent(dest)) {
1038 return true;
1039 }
1040 return false;
1041}
1042
1043CWalletTx* CWallet::AddToWallet(CTransactionRef tx, const TxState& state, const UpdateWalletTxFn& update_wtx, bool rescanning_old_block)
1044{

Callers 3

AvailableCoinsFunction · 0.80
GetBalanceFunction · 0.80
listunspentFunction · 0.80

Calls 1

ExtractDestinationFunction · 0.85

Tested by

no test coverage detected