Changeset View
Changeset View
Standalone View
Standalone View
src/qt/walletmodel.cpp
Show First 20 Lines • Show All 378 Lines • ▼ Show 20 Lines | WalletModel::EncryptionStatus WalletModel::getEncryptionStatus() const { | ||||
} else if (wallet->IsLocked()) { | } else if (wallet->IsLocked()) { | ||||
return Locked; | return Locked; | ||||
} else { | } else { | ||||
return Unlocked; | return Unlocked; | ||||
} | } | ||||
} | } | ||||
bool WalletModel::setWalletEncrypted(bool encrypted, | bool WalletModel::setWalletEncrypted(bool encrypted, | ||||
const SecureString &passphrase) { | const SecureString &passphrase, | ||||
CKey *newSeed) { | |||||
if (encrypted) { | if (encrypted) { | ||||
// Encrypt | // Encrypt | ||||
return wallet->EncryptWallet(passphrase); | return wallet->EncryptWallet(passphrase, newSeed); | ||||
} else { | } else { | ||||
// Decrypt -- TODO; not supported yet | // Decrypt -- TODO; not supported yet | ||||
return false; | return false; | ||||
} | } | ||||
} | } | ||||
bool WalletModel::setWalletLocked(bool locked, const SecureString &passPhrase) { | bool WalletModel::setWalletLocked(bool locked, const SecureString &passPhrase) { | ||||
if (locked) { | if (locked) { | ||||
▲ Show 20 Lines • Show All 291 Lines • Show Last 20 Lines |