diff options
author | furszy <matiasfurszyfer@protonmail.com> | 2022-04-27 10:37:50 -0300 |
---|---|---|
committer | furszy <matiasfurszyfer@protonmail.com> | 2022-06-08 10:26:48 -0300 |
commit | 91902b77202fc636edb3db587cb6e87d9fb9b60a (patch) | |
tree | db865522da24521a1cf7453ee8038c7ba0b6a584 /src/wallet/wallet.cpp | |
parent | 9472ca0a65396206b3078bddf98f4c1807be2d82 (diff) | |
download | bitcoin-91902b77202fc636edb3db587cb6e87d9fb9b60a.tar.xz |
wallet: IsLockedCoin, 'COutPoint' arg instead of (hash, index)
Diffstat (limited to 'src/wallet/wallet.cpp')
-rw-r--r-- | src/wallet/wallet.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/wallet/wallet.cpp b/src/wallet/wallet.cpp index 6c333c709b..19650ed166 100644 --- a/src/wallet/wallet.cpp +++ b/src/wallet/wallet.cpp @@ -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 |