wallet: new rescan_spent command to update outputs' spent status

This obsoletes the need for a lengthy blockchain rescan when
a transaction doesn't end up in the chain after being accepted
by the daemon, or any other reason why the wallet's idea of
spent and unspent outputs gets out of sync from the blockchain's.
This commit is contained in:
moneromooo-monero
2015-08-11 15:14:44 +01:00
parent 01e81205e0
commit aa5bc351d4
5 changed files with 92 additions and 0 deletions

View File

@@ -120,6 +120,7 @@ namespace cryptonote
bool save(const std::vector<std::string> &args);
bool save_watch_only(const std::vector<std::string> &args);
bool set_variable(const std::vector<std::string> &args);
bool rescan_spent(const std::vector<std::string> &args);
bool set_log(const std::vector<std::string> &args);
uint64_t get_daemon_blockchain_height(std::string& err);