Changeset View
Changeset View
Standalone View
Standalone View
src/qt/walletcontroller.cpp
Show First 20 Lines • Show All 215 Lines • ▼ Show 20 Lines | void CreateWalletActivity::createWallet() { | ||||
std::string name = m_create_wallet_dialog->walletName().toStdString(); | std::string name = m_create_wallet_dialog->walletName().toStdString(); | ||||
uint64_t flags = 0; | uint64_t flags = 0; | ||||
if (m_create_wallet_dialog->isDisablePrivateKeysChecked()) { | if (m_create_wallet_dialog->isDisablePrivateKeysChecked()) { | ||||
flags |= WALLET_FLAG_DISABLE_PRIVATE_KEYS; | flags |= WALLET_FLAG_DISABLE_PRIVATE_KEYS; | ||||
} | } | ||||
if (m_create_wallet_dialog->isMakeBlankWalletChecked()) { | if (m_create_wallet_dialog->isMakeBlankWalletChecked()) { | ||||
flags |= WALLET_FLAG_BLANK_WALLET; | flags |= WALLET_FLAG_BLANK_WALLET; | ||||
} | } | ||||
if (m_create_wallet_dialog->isDescriptorWalletChecked()) { | |||||
flags |= WALLET_FLAG_DESCRIPTORS; | |||||
} | |||||
QTimer::singleShot(500, worker(), [this, name, flags] { | QTimer::singleShot(500, worker(), [this, name, flags] { | ||||
WalletCreationStatus status; | WalletCreationStatus status; | ||||
std::unique_ptr<interfaces::Wallet> wallet = | std::unique_ptr<interfaces::Wallet> wallet = | ||||
node().createWallet(m_chainparams, m_passphrase, flags, name, | node().createWallet(m_chainparams, m_passphrase, flags, name, | ||||
m_error_message, m_warning_message, status); | m_error_message, m_warning_message, status); | ||||
if (status == WalletCreationStatus::SUCCESS) { | if (status == WalletCreationStatus::SUCCESS) { | ||||
▲ Show 20 Lines • Show All 90 Lines • Show Last 20 Lines |