| 2652 | } |
| 2653 | |
| 2654 | bool CWallet::UnlockCoin(const COutPoint& output, WalletBatch* batch) |
| 2655 | { |
| 2656 | AssertLockHeld(cs_wallet); |
| 2657 | bool was_locked = setLockedCoins.erase(output); |
| 2658 | if (batch && was_locked) { |
| 2659 | return batch->EraseLockedUTXO(output); |
| 2660 | } |
| 2661 | return true; |
| 2662 | } |
| 2663 | |
| 2664 | bool CWallet::UnlockAllCoins() |
| 2665 | { |
no test coverage detected