Skip to content
Permalink
Browse files

Fix --restore-date usage

The wallet was ignoring --restore-height and --restore-date params and
prompting for them again.
  • Loading branch information...
hyc committed Jun 16, 2019
1 parent 6335509 commit 8ccc30b163c45de9a9a6ec44a38cabf22dcf924b
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/simplewallet/simplewallet.cpp
@@ -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))
{

0 comments on commit 8ccc30b

Please sign in to comment.
You can’t perform that action at this time.