simplewallet: allow setting --restore-height 0

pull/377/head
selsta 3 years ago
parent 964ad0e51a
commit 993e9be669
Signed by untrusted user: selsta
GPG Key ID: 2EA0A99A8B07AE5E

@ -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.") << " ";

Loading…
Cancel
Save