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

Method UnlockAllCoins

src/wallet/wallet.cpp:2664–2674  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2662}
2663
2664bool 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
2676bool CWallet::IsLockedCoin(uint256 hash, unsigned int n) const
2677{

Callers 1

lockunspentFunction · 0.80

Calls 4

EraseLockedUTXOMethod · 0.80
beginMethod · 0.45
endMethod · 0.45
clearMethod · 0.45

Tested by

no test coverage detected