From aa5bc351d422fd31e66e01a46b166952ef91e958 Mon Sep 17 00:00:00 2001 From: moneromooo-monero Date: Tue, 11 Aug 2015 15:14:44 +0100 Subject: 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. --- src/wallet/wallet2.h | 1 + 1 file changed, 1 insertion(+) (limited to 'src/wallet/wallet2.h') diff --git a/src/wallet/wallet2.h b/src/wallet/wallet2.h index eee6aa58c..ffe9ad0e5 100644 --- a/src/wallet/wallet2.h +++ b/src/wallet/wallet2.h @@ -235,6 +235,7 @@ namespace tools void get_payments(const crypto::hash& payment_id, std::list& payments, uint64_t min_height = 0) const; void get_payments(std::list>& payments, uint64_t min_height) const; uint64_t get_blockchain_current_height() const { return m_local_bc_height; } + void rescan_spent(); template inline void serialize(t_archive &a, const unsigned int ver) { -- cgit v1.2.3