4281 std::unique_ptr<tools::wallet2> wal;
4286 if (testnet && stagenet)
4299 const auto password_prompt = prompt_for_password ? password_prompter :
nullptr;
4301 if(!wallet_file.empty() && !from_json.empty())
4307 if (!wallet_dir.empty())
4313 if (wallet_file.empty() && from_json.empty())
4320 if(!wallet_file.empty())
4331 catch (
const std::exception &e)
4333 MERROR(
"Error creating wallet: " << e.what());
4349 wal->refresh(wal->is_trusted_daemon());
4360 catch (
const std::exception& e)
4366 if (wal) wrpc->set_wallet(wal.release());
4367 bool r = wrpc->init(&vm);
4370 wrpc->send_stop_signal();
4377 catch (
const std::exception &e)
4389 catch (
const std::exception& e)
#define CHECK_AND_ASSERT_MES(expr, fail_ret_val, message)
T get_arg(const boost::program_options::variables_map &vm, const arg_descriptor< T, false, true > &arg)
const T & move(const T &t)
command_line::arg_descriptor< std::string > arg_generate_from_json()
command_line::arg_descriptor< std::string > arg_wallet_file()