mirror of
https://github.com/monero-project/monero.git
synced 2025-08-18 03:50:22 -04:00
wallet2: factor the creation of a new wallet keys file
This commit is contained in:
parent
be6acfd5be
commit
20171746de
3 changed files with 29 additions and 77 deletions
|
@ -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());
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue