wallet2: factor the creation of a new wallet keys file

This commit is contained in:
moneromooo-monero 2018-09-03 11:13:23 +00:00
parent be6acfd5be
commit 20171746de
No known key found for this signature in database
GPG key ID: 686F07454D6CEFC3
3 changed files with 29 additions and 77 deletions

View file

@ -3678,7 +3678,8 @@ boost::optional<epee::wipeable_string> simple_wallet::new_wallet(const boost::pr
try
{
m_wallet->restore(m_wallet_file, std::move(rc.second).password(), device_name);
bool create_address_file = command_line::get_arg(vm, arg_create_address_file);
m_wallet->restore(m_wallet_file, std::move(rc.second).password(), device_name, create_address_file);
message_writer(console_color_white, true) << tr("Generated new wallet on hw device: ")
<< m_wallet->get_account().get_public_address_str(m_wallet->nettype());
}