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.
This commit is contained in:
moneromooo-monero
2015-11-22 19:03:10 +00:00
parent d2c031332e
commit 9b945f5211
4 changed files with 62 additions and 6 deletions
+3 -1
View File
@@ -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;