aboutsummaryrefslogtreecommitdiff
path: root/src/wallet/wallet2.h
diff options
context:
space:
mode:
authormoneromooo-monero <moneromooo-monero@users.noreply.github.com>2015-08-11 15:14:44 +0100
committermoneromooo-monero <moneromooo-monero@users.noreply.github.com>2015-08-11 15:55:08 +0100
commitaa5bc351d422fd31e66e01a46b166952ef91e958 (patch)
treefb9c68c64665c1a37075ac8f34e70ef8ff6fb826 /src/wallet/wallet2.h
parentMerge pull request #365 (diff)
downloadmonero-aa5bc351d422fd31e66e01a46b166952ef91e958.tar.xz
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.
Diffstat (limited to 'src/wallet/wallet2.h')
-rw-r--r--src/wallet/wallet2.h1
1 files changed, 1 insertions, 0 deletions
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<wallet2::payment_details>& payments, uint64_t min_height = 0) const;
void get_payments(std::list<std::pair<crypto::hash,wallet2::payment_details>>& payments, uint64_t min_height) const;
uint64_t get_blockchain_current_height() const { return m_local_bc_height; }
+ void rescan_spent();
template <class t_archive>
inline void serialize(t_archive &a, const unsigned int ver)
{