Skip to content

Commit

Permalink
graft-wallet-cli: fix for --restore-height CLI parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
mbg033 committed Jan 12, 2018
1 parent 4fccc4d commit 0868914
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/simplewallet/simplewallet.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1543,6 +1543,9 @@ bool simple_wallet::new_wallet(const boost::program_options::variables_map& vm,
return false;
}

if (m_restore_height)
m_wallet->set_refresh_from_block_height(m_restore_height);

bool was_deprecated_wallet = m_restore_deterministic_wallet && ((old_language == crypto::ElectrumWords::old_language_name) ||
crypto::ElectrumWords::get_is_old_style_seed(m_electrum_seed));

Expand Down

0 comments on commit 0868914

Please sign in to comment.