MCPcopy Create free account
hub / github.com/LUX-Core/lux / getEncryptionStatus

Method getEncryptionStatus

src/qt/walletmodel.cpp:459–470  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

457
458
459WalletModel::EncryptionStatus WalletModel::getEncryptionStatus() const
460{
461 if (!wallet->IsCrypted()) {
462 return Unencrypted;
463 } else if (wallet->fWalletUnlockStakingOnly) {
464 return UnlockedForStakingOnly;
465 } else if (wallet->IsLocked()) {
466 return Locked;
467 } else {
468 return Unlocked;
469 }
470}
471
472bool WalletModel::setWalletEncrypted(bool encrypted, const SecureString& passphrase)
473{

Callers 6

unlockWalletMethod · 0.80
on_sendButton_clickedMethod · 0.80
toggleDarksendMethod · 0.80
toggleDarksendMethod · 0.80

Calls 2

IsLockedMethod · 0.80
IsCryptedMethod · 0.45

Tested by

no test coverage detected