aboutsummaryrefslogtreecommitdiff
path: root/src/simplewallet/simplewallet.h
diff options
context:
space:
mode:
authormoneromooo-monero <moneromooo-monero@users.noreply.github.com>2015-11-22 19:03:10 +0000
committermoneromooo-monero <moneromooo-monero@users.noreply.github.com>2015-11-22 19:03:10 +0000
commit9b945f52111cdb22fb17e7fe5cba223ebb8be2af (patch)
tree23062b088392cf70a66464b5e04d2b42603558ad /src/simplewallet/simplewallet.h
parentwallet: speedup refresh from daemon (diff)
downloadmonero-9b945f52111cdb22fb17e7fe5cba223ebb8be2af.tar.xz
wallet: make the refresh optimizations selectable via command line
Take the opportunity to add a no-coinbase case too, for even faster sync when an address is known to never have mined to.
Diffstat (limited to 'src/simplewallet/simplewallet.h')
-rw-r--r--src/simplewallet/simplewallet.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/simplewallet/simplewallet.h b/src/simplewallet/simplewallet.h
index 94ad724be..2ad54d4ca 100644
--- a/src/simplewallet/simplewallet.h
+++ b/src/simplewallet/simplewallet.h
@@ -73,7 +73,7 @@ namespace cryptonote
bool process_command(const std::vector<std::string> &args);
std::string get_commands_str();
private:
- void handle_command_line(const boost::program_options::variables_map& vm);
+ bool handle_command_line(const boost::program_options::variables_map& vm);
bool run_console_handler();
@@ -222,6 +222,8 @@ namespace cryptonote
std::string m_daemon_host;
int m_daemon_port;
+ tools::wallet2::RefreshType m_refresh_type;
+
epee::console_handlers_binder m_cmd_binder;
std::unique_ptr<tools::wallet2> m_wallet;