aboutsummaryrefslogtreecommitdiff
path: root/src/simplewallet/simplewallet.cpp
diff options
context:
space:
mode:
authorselsta <selsta@sent.at>2021-01-13 12:35:31 +0100
committerselsta <selsta@sent.at>2021-01-13 12:36:58 +0100
commit993e9be669f379ad70dd786b377eedd7ba510e7c (patch)
tree2788dabaf9b31aaa802ed53fc60d07794118b89d /src/simplewallet/simplewallet.cpp
parentMerge pull request #7286 (diff)
downloadmonero-993e9be669f379ad70dd786b377eedd7ba510e7c.tar.xz
simplewallet: allow setting --restore-height 0
Diffstat (limited to 'src/simplewallet/simplewallet.cpp')
-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 0635520c6..bd7c6b1a5 100644
--- a/src/simplewallet/simplewallet.cpp
+++ b/src/simplewallet/simplewallet.cpp
@@ -4519,7 +4519,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.") << " ";