aboutsummaryrefslogtreecommitdiff
path: root/src/wallet/wallet_errors.h
diff options
context:
space:
mode:
authormoneromooo-monero <moneromooo-monero@users.noreply.github.com>2016-01-29 19:44:48 +0000
committermoneromooo-monero <moneromooo-monero@users.noreply.github.com>2016-01-29 19:44:48 +0000
commitb11539fda74c0eb1a2b86aa31105eb6addc17256 (patch)
tree34521ddabae5326fcd7e8f4cb200df80132edbe5 /src/wallet/wallet_errors.h
parenttx_pool: serialize missing kept_by_block flag (diff)
downloadmonero-b11539fda74c0eb1a2b86aa31105eb6addc17256.tar.xz
wallet: detect and handle failed outgoing transfers
When a transaction is not found in the pool anymore, it is marked as failed, and displayed as such in show_transfers.
Diffstat (limited to 'src/wallet/wallet_errors.h')
-rw-r--r--src/wallet/wallet_errors.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/wallet/wallet_errors.h b/src/wallet/wallet_errors.h
index ad475a03a..10d27651f 100644
--- a/src/wallet/wallet_errors.h
+++ b/src/wallet/wallet_errors.h
@@ -61,6 +61,7 @@ namespace tools
// get_blocks_error
// get_out_indexes_error
// tx_parse_error
+ // get_tx_pool_error
// transfer_error *
// get_random_outs_general_error
// not_enough_money
@@ -307,6 +308,16 @@ namespace tools
cryptonote::blobdata m_tx_blob;
};
//----------------------------------------------------------------------------------------------------
+ struct get_tx_pool_error : public refresh_error
+ {
+ explicit get_tx_pool_error(std::string&& loc)
+ : refresh_error(std::move(loc), "error getting tranaction pool")
+ {
+ }
+
+ std::string to_string() const { return refresh_error::to_string(); }
+ };
+ //----------------------------------------------------------------------------------------------------
struct transfer_error : public wallet_logic_error
{
protected: