mirror of
https://git.wownero.com/wownero/wownero.git
synced 2024-12-23 02:58:51 +00:00
Merge pull request #5743
65f29a8
simplewallet: add restore_height command (tobtoht)
This commit is contained in:
commit
de30131abd
@ -803,6 +803,12 @@ bool simple_wallet::encrypted_seed(const std::vector<std::string> &args/* = std:
|
|||||||
return print_seed(true);
|
return print_seed(true);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
bool simple_wallet::restore_height(const std::vector<std::string> &args/* = std::vector<std::string>()*/)
|
||||||
|
{
|
||||||
|
success_msg_writer() << m_wallet->get_refresh_from_block_height();
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
bool simple_wallet::seed_set_language(const std::vector<std::string> &args/* = std::vector<std::string>()*/)
|
bool simple_wallet::seed_set_language(const std::vector<std::string> &args/* = std::vector<std::string>()*/)
|
||||||
{
|
{
|
||||||
if (m_wallet->key_on_device())
|
if (m_wallet->key_on_device())
|
||||||
@ -2845,6 +2851,9 @@ simple_wallet::simple_wallet()
|
|||||||
m_cmd_binder.set_handler("seed",
|
m_cmd_binder.set_handler("seed",
|
||||||
boost::bind(&simple_wallet::seed, this, _1),
|
boost::bind(&simple_wallet::seed, this, _1),
|
||||||
tr("Display the Electrum-style mnemonic seed"));
|
tr("Display the Electrum-style mnemonic seed"));
|
||||||
|
m_cmd_binder.set_handler("restore_height",
|
||||||
|
boost::bind(&simple_wallet::restore_height, this, _1),
|
||||||
|
tr("Display the restore height"));
|
||||||
m_cmd_binder.set_handler("set",
|
m_cmd_binder.set_handler("set",
|
||||||
boost::bind(&simple_wallet::set_variable, this, _1),
|
boost::bind(&simple_wallet::set_variable, this, _1),
|
||||||
tr(USAGE_SET_VARIABLE),
|
tr(USAGE_SET_VARIABLE),
|
||||||
|
@ -109,6 +109,7 @@ namespace cryptonote
|
|||||||
bool spendkey(const std::vector<std::string> &args = std::vector<std::string>());
|
bool spendkey(const std::vector<std::string> &args = std::vector<std::string>());
|
||||||
bool seed(const std::vector<std::string> &args = std::vector<std::string>());
|
bool seed(const std::vector<std::string> &args = std::vector<std::string>());
|
||||||
bool encrypted_seed(const std::vector<std::string> &args = std::vector<std::string>());
|
bool encrypted_seed(const std::vector<std::string> &args = std::vector<std::string>());
|
||||||
|
bool restore_height(const std::vector<std::string> &args = std::vector<std::string>());
|
||||||
|
|
||||||
/*!
|
/*!
|
||||||
* \brief Sets seed language.
|
* \brief Sets seed language.
|
||||||
|
Loading…
Reference in New Issue
Block a user