aboutsummaryrefslogtreecommitdiff
path: root/src/simplewallet
diff options
context:
space:
mode:
authorluigi1111 <luigi1111w@gmail.com>2021-02-16 11:42:14 -0500
committerluigi1111 <luigi1111w@gmail.com>2021-02-16 11:42:14 -0500
commit3328938d4e5a2d552e2cdcb3dd56f584cd336ef6 (patch)
tree0d57ebe105e73761401f29560e7a31f385f8db24 /src/simplewallet
parentMerge pull request #7313 (diff)
parentsimplewallet: allow setting --restore-height 0 (diff)
downloadmonero-3328938d4e5a2d552e2cdcb3dd56f584cd336ef6.tar.xz
Merge pull request #7319
993e9be simplewallet: allow setting --restore-height 0 (selsta)
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 594d79a13..309211ffb 100644
--- a/src/simplewallet/simplewallet.cpp
+++ b/src/simplewallet/simplewallet.cpp
@@ -4520,7 +4520,7 @@ bool simple_wallet::init(const boost::program_options::variables_map& vm)
password = *r;
welcome = true;
// if no block_height is specified, assume its a new account and start it "now"
- if(m_wallet->get_refresh_from_block_height() == 0) {
+ if (command_line::is_arg_defaulted(vm, arg_restore_height)) {
{
tools::scoped_message_writer wrt = tools::msg_writer();
wrt << tr("No restore height is specified.") << " ";