From b11539fda74c0eb1a2b86aa31105eb6addc17256 Mon Sep 17 00:00:00 2001 From: moneromooo-monero Date: Fri, 29 Jan 2016 19:44:48 +0000 Subject: 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. --- src/wallet/wallet_errors.h | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'src/wallet/wallet_errors.h') 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: -- cgit v1.2.3