| 2662 | } |
| 2663 | |
| 2664 | bool CWallet::UnlockAllCoins() |
| 2665 | { |
| 2666 | AssertLockHeld(cs_wallet); |
| 2667 | bool success = true; |
| 2668 | WalletBatch batch(GetDatabase()); |
| 2669 | for (auto it = setLockedCoins.begin(); it != setLockedCoins.end(); ++it) { |
| 2670 | success &= batch.EraseLockedUTXO(*it); |
| 2671 | } |
| 2672 | setLockedCoins.clear(); |
| 2673 | return success; |
| 2674 | } |
| 2675 | |
| 2676 | bool CWallet::IsLockedCoin(uint256 hash, unsigned int n) const |
| 2677 | { |
no test coverage detected