mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-15 12:51:00 +02:00
wallet: remove unused IsSpentKey(hash, index) method
This commit is contained in:
parent
4b83bf8dbc
commit
cdf185ccfb
2 changed files with 1 additions and 11 deletions
|
|
@ -906,15 +906,6 @@ void CWallet::SetSpentKeyState(WalletBatch& batch, const uint256& hash, unsigned
|
|||
}
|
||||
}
|
||||
|
||||
bool CWallet::IsSpentKey(const uint256& hash, unsigned int n) const
|
||||
{
|
||||
AssertLockHeld(cs_wallet);
|
||||
const CWalletTx* srctx = GetWalletTx(hash);
|
||||
if (!srctx) return false;
|
||||
assert(srctx->tx->vout.size() > n);
|
||||
return IsSpentKey(srctx->tx->vout[n].scriptPubKey);
|
||||
}
|
||||
|
||||
bool CWallet::IsSpentKey(const CScript& scriptPubKey) const
|
||||
{
|
||||
AssertLockHeld(cs_wallet);
|
||||
|
|
|
|||
|
|
@ -443,8 +443,7 @@ public:
|
|||
|
||||
bool IsSpent(const COutPoint& outpoint) const EXCLUSIVE_LOCKS_REQUIRED(cs_wallet);
|
||||
|
||||
// Whether this or any known UTXO with the same single key has been spent.
|
||||
bool IsSpentKey(const uint256& hash, unsigned int n) const EXCLUSIVE_LOCKS_REQUIRED(cs_wallet);
|
||||
// Whether this or any known scriptPubKey with the same single key has been spent.
|
||||
bool IsSpentKey(const CScript& scriptPubKey) const EXCLUSIVE_LOCKS_REQUIRED(cs_wallet);
|
||||
void SetSpentKeyState(WalletBatch& batch, const uint256& hash, unsigned int n, bool used, std::set<CTxDestination>& tx_destinations) EXCLUSIVE_LOCKS_REQUIRED(cs_wallet);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue