MCPcopy Create free account
hub / github.com/ElementsProject/elements / UnlockCoin

Method UnlockCoin

src/wallet/wallet.cpp:2654–2662  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2652}
2653
2654bool 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
2664bool CWallet::UnlockAllCoins()
2665{

Callers 2

unlockCoinMethod · 0.80
lockunspentFunction · 0.80

Calls 2

EraseLockedUTXOMethod · 0.80
eraseMethod · 0.45

Tested by

no test coverage detected