Merge pull request #4332

20171746 wallet2: factor the creation of a new wallet keys file (moneromooo-monero)
be6acfd5 wallet2: factor new blockchain setup (moneromooo-monero)
This commit is contained in:
Riccardo Spagni 2018-09-14 13:05:43 +02:00
commit dd2fc3afe3
No known key found for this signature in database
GPG key ID: 55432DF31CCD4FCD
3 changed files with 47 additions and 113 deletions

View file

@ -3707,7 +3707,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());
}