diff options
author | selsta <selsta@sent.at> | 2021-01-13 12:35:31 +0100 |
---|---|---|
committer | selsta <selsta@sent.at> | 2021-01-13 12:36:58 +0100 |
commit | 993e9be669f379ad70dd786b377eedd7ba510e7c (patch) | |
tree | 2788dabaf9b31aaa802ed53fc60d07794118b89d /src | |
parent | Merge pull request #7286 (diff) | |
download | monero-993e9be669f379ad70dd786b377eedd7ba510e7c.tar.xz |
simplewallet: allow setting --restore-height 0
Diffstat (limited to 'src')
-rw-r--r-- | src/simplewallet/simplewallet.cpp | 2 |
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.") << " "; |