Changeset View
Changeset View
Standalone View
Standalone View
src/wallet/rpcwallet.cpp
Show First 20 Lines • Show All 3,308 Lines • ▼ Show 20 Lines | static UniValue createwallet(const Config &config, | ||||
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( | warnings.emplace_back( | ||||
Untranslated("Wallet is an experimental descriptor wallet")); | Untranslated("Wallet is an experimental descriptor wallet")); | ||||
} | } | ||||
DatabaseOptions options; | DatabaseOptions options; | ||||
DatabaseStatus status; | DatabaseStatus status; | ||||
options.require_create = true; | |||||
options.create_flags = flags; | options.create_flags = flags; | ||||
options.create_passphrase = passphrase; | options.create_passphrase = passphrase; | ||||
bilingual_str error; | bilingual_str error; | ||||
std::optional<bool> load_on_start = | std::optional<bool> load_on_start = | ||||
request.params[6].isNull() | request.params[6].isNull() | ||||
? std::nullopt | ? std::nullopt | ||||
: std::make_optional<bool>(request.params[6].get_bool()); | : std::make_optional<bool>(request.params[6].get_bool()); | ||||
std::shared_ptr<CWallet> wallet = | std::shared_ptr<CWallet> wallet = | ||||
▲ Show 20 Lines • Show All 1,688 Lines • Show Last 20 Lines |