| 3365 | } |
| 3366 | |
| 3367 | bool 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 | |
| 3381 | bool CWallet::Unlock(const CKeyingMaterial& vMasterKeyIn, bool accept_no_keys) |
| 3382 | { |