Merge pull request #7319

993e9be simplewallet: allow setting --restore-height 0 (selsta)
This commit is contained in:
luigi1111 2021-02-16 11:42:14 -05:00
commit 3328938d4e
No known key found for this signature in database
GPG Key ID: F4ACA0183641E010
1 changed files with 1 additions and 1 deletions

View File

@ -4520,7 +4520,7 @@ bool simple_wallet::init(const boost::program_options::variables_map& vm)
password = *r; password = *r;
welcome = true; welcome = true;
// if no block_height is specified, assume its a new account and start it "now" // 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(); tools::scoped_message_writer wrt = tools::msg_writer();
wrt << tr("No restore height is specified.") << " "; wrt << tr("No restore height is specified.") << " ";