aboutsummaryrefslogtreecommitdiff
path: root/src/wallet/wallet_errors.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/wallet_errors.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/wallet_errors.h')
-rw-r--r--src/wallet/wallet_errors.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/wallet/wallet_errors.h b/src/wallet/wallet_errors.h
index bf520c36c..94518e691 100644
--- a/src/wallet/wallet_errors.h
+++ b/src/wallet/wallet_errors.h
@@ -73,6 +73,7 @@ namespace tools
// wallet_rpc_error *
// daemon_busy
// no_connection_to_daemon
+ // is_key_image_spent_error
// wallet_files_doesnt_correspond
//
// * - class with protected ctor
@@ -574,6 +575,14 @@ namespace tools
}
};
//----------------------------------------------------------------------------------------------------
+ struct is_key_image_spent_error : public wallet_rpc_error
+ {
+ explicit is_key_image_spent_error(std::string&& loc, const std::string& request)
+ : wallet_rpc_error(std::move(loc), "error from is_key_image_spent call", request)
+ {
+ }
+ };
+ //----------------------------------------------------------------------------------------------------
struct wallet_files_doesnt_correspond : public wallet_logic_error
{
explicit wallet_files_doesnt_correspond(std::string&& loc, const std::string& keys_file, const std::string& wallet_file)