Changeset View
Changeset View
Standalone View
Standalone View
src/wallet/rpcwallet.cpp
Show First 20 Lines • Show All 3,370 Lines • ▼ Show 20 Lines | if (!request.params[3].isNull()) { | ||||
} | } | ||||
} | } | ||||
if (!request.params[4].isNull() && request.params[4].get_bool()) { | if (!request.params[4].isNull() && request.params[4].get_bool()) { | ||||
flags |= WALLET_FLAG_AVOID_REUSE; | flags |= WALLET_FLAG_AVOID_REUSE; | ||||
} | } | ||||
if (!request.params[5].isNull() && request.params[5].get_bool()) { | if (!request.params[5].isNull() && request.params[5].get_bool()) { | ||||
flags |= WALLET_FLAG_DESCRIPTORS; | flags |= WALLET_FLAG_DESCRIPTORS; | ||||
warnings.emplace_back( | |||||
Untranslated("Wallet is an experimental descriptor wallet")); | |||||
} | } | ||||
bilingual_str error; | bilingual_str error; | ||||
std::shared_ptr<CWallet> wallet; | std::shared_ptr<CWallet> wallet; | ||||
WalletCreationStatus status = | WalletCreationStatus status = | ||||
CreateWallet(config.GetChainParams(), *context.chain, passphrase, flags, | CreateWallet(config.GetChainParams(), *context.chain, passphrase, flags, | ||||
request.params[0].get_str(), error, warnings, wallet); | request.params[0].get_str(), error, warnings, wallet); | ||||
switch (status) { | switch (status) { | ||||
▲ Show 20 Lines • Show All 1,698 Lines • Show Last 20 Lines |