wallet: IsLockedCoin, 'COutPoint' arg instead of (hash, index)

This commit is contained in:
furszy
2022-04-27 10:37:50 -03:00
parent 9472ca0a65
commit 91902b7720
5 changed files with 6 additions and 8 deletions

View File

@@ -2449,12 +2449,10 @@ bool CWallet::UnlockAllCoins()
return success;
}
bool CWallet::IsLockedCoin(uint256 hash, unsigned int n) const
bool CWallet::IsLockedCoin(const COutPoint& output) const
{
AssertLockHeld(cs_wallet);
COutPoint outpt(hash, n);
return (setLockedCoins.count(outpt) > 0);
return setLockedCoins.count(output) > 0;
}
void CWallet::ListLockedCoins(std::vector<COutPoint>& vOutpts) const