4301 std::unique_ptr<tools::wallet2> wal;
4306 if (testnet && stagenet)
4319 const auto password_prompt = prompt_for_password ? password_prompter :
nullptr;
4321 if(!wallet_file.empty() && !from_json.empty())
4327 if (!wallet_dir.empty())
4333 if (wallet_file.empty() && from_json.empty())
4340 if(!wallet_file.empty())
4351 catch (
const std::exception &e)
4353 MERROR(
"Error creating wallet: " << e.what());
4380 catch (
const std::exception& e)
4386 if (wal) wrpc->set_wallet(wal.release());
4387 bool r = wrpc->init(&vm);
4390 wrpc->send_stop_signal();
4397 catch (
const std::exception &e)
4409 catch (
const std::exception& e)
command_line::arg_descriptor< std::string > arg_wallet_file()
#define CHECK_AND_ASSERT_MES(expr, fail_ret_val, message)
command_line::arg_descriptor< std::string > arg_generate_from_json()
const T & move(const T &t)
T get_arg(const boost::program_options::variables_map &vm, const arg_descriptor< T, false, true > &arg)