Fix --restore-date usage

The wallet was ignoring --restore-height and --restore-date params and
prompting for them again.
pull/326/head
Howard Chu 5 years ago
parent 6335509727
commit 8ccc30b163
No known key found for this signature in database
GPG Key ID: FD2A70B44AB11BA7

@ -3970,7 +3970,7 @@ bool simple_wallet::init(const boost::program_options::variables_map& vm)
if (m_restoring && m_generate_from_json.empty() && m_generate_from_device.empty())
{
m_wallet->explicit_refresh_from_block_height(!(command_line::is_arg_defaulted(vm, arg_restore_height) ||
m_wallet->explicit_refresh_from_block_height(!(command_line::is_arg_defaulted(vm, arg_restore_height) &&
command_line::is_arg_defaulted(vm, arg_restore_date)));
if (command_line::is_arg_defaulted(vm, arg_restore_height) && !command_line::is_arg_defaulted(vm, arg_restore_date))
{

Loading…
Cancel
Save