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

Method Lock

src/wallet/wallet.cpp:3367–3379  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3365}
3366
3367bool CWallet::Lock()
3368{
3369 if (!IsCrypted())
3370 return false;
3371
3372 {
3373 LOCK(cs_wallet);
3374 vMasterKey.clear();
3375 }
3376
3377 NotifyStatusChanged(this);
3378 return true;
3379}
3380
3381bool CWallet::Unlock(const CKeyingMaterial& vMasterKeyIn, bool accept_no_keys)
3382{

Callers 15

p2p.pyFile · 0.80
CreateWalletFunction · 0.80
lockMethod · 0.80
walletpassphraseFunction · 0.80
walletlockFunction · 0.80
RunBenchmarkMethod · 0.80
LOCKS_EXCLUDEDMethod · 0.80
ScheduleMethod · 0.80
BackgroundThreadMainMethod · 0.80
EXCLUSIVE_LOCK_FUNCTIONFunction · 0.80
ThreadBodyFunction · 0.80
ScheduleMethod · 0.80

Calls 1

clearMethod · 0.45

Tested by 3

ThreadBodyFunction · 0.64
LOCKS_EXCLUDEDMethod · 0.64