mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-11-13 07:28:59 +01:00
wallet: IsLockedCoin, 'COutPoint' arg instead of (hash, index)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user