| 457 | |
| 458 | |
| 459 | WalletModel::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 | |
| 472 | bool WalletModel::setWalletEncrypted(bool encrypted, const SecureString& passphrase) |
| 473 | { |
no test coverage detected