Fix --restore-date usage

The wallet was ignoring --restore-height and --restore-date params and
prompting for them again.
This commit is contained in:
Howard Chu 2019-06-16 21:11:33 +01:00
parent 6335509727
commit 8ccc30b163
No known key found for this signature in database
GPG Key ID: FD2A70B44AB11BA7
1 changed files with 1 additions and 1 deletions

View File

@ -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))
{