aboutsummaryrefslogtreecommitdiff
path: root/src/simplewallet
diff options
context:
space:
mode:
authorHoward Chu <hyc@symas.com>2019-06-16 21:11:33 +0100
committerHoward Chu <hyc@symas.com>2019-06-16 21:11:33 +0100
commit8ccc30b163c45de9a9a6ec44a38cabf22dcf924b (patch)
tree79ad6aaeb94c954cfaf07a239019ad66b2389727 /src/simplewallet
parentMerge pull request #5641 (diff)
downloadmonero-8ccc30b163c45de9a9a6ec44a38cabf22dcf924b.tar.xz
Fix --restore-date usage
The wallet was ignoring --restore-height and --restore-date params and prompting for them again.
Diffstat (limited to 'src/simplewallet')
-rw-r--r--src/simplewallet/simplewallet.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/simplewallet/simplewallet.cpp b/src/simplewallet/simplewallet.cpp
index 02a099811..4fcd5396b 100644
--- a/src/simplewallet/simplewallet.cpp
+++ b/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))
{