Merge pull request #5656

8ccc30b Fix --restore-date usage (hyc)
This commit is contained in:
luigi1111 2019-08-15 17:14:58 -05:00
commit c5e926676a
No known key found for this signature in database
GPG key ID: F4ACA0183641E010

View file

@ -3972,7 +3972,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))
{