diff options
author | Riccardo Spagni <ric@spagni.net> | 2017-09-25 16:53:07 +0200 |
---|---|---|
committer | Riccardo Spagni <ric@spagni.net> | 2017-09-25 16:53:07 +0200 |
commit | 0e7477707114e0dc5ec7e4e2683b5410a52afca4 (patch) | |
tree | 2e03710da2f12ebc6a160450e7dbe575642b15d9 /src/simplewallet/simplewallet.cpp | |
parent | Merge pull request #2424 (diff) | |
parent | tx_pool: set the "invalid input" bit when check_tx_inputs fails (diff) | |
download | monero-0e7477707114e0dc5ec7e4e2683b5410a52afca4.tar.xz |
Merge pull request #2452
0aaaca29 tx_pool: set the "invalid input" bit when check_tx_inputs fails (moneromooo-monero)
9236823b simplewallet: print tx rejection reason where it was missing (moneromooo-monero)
3dee3301 core_rpc_server: print tx rejection reason at L0 too (moneromooo-monero)
Diffstat (limited to 'src/simplewallet/simplewallet.cpp')
-rw-r--r-- | src/simplewallet/simplewallet.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/simplewallet/simplewallet.cpp b/src/simplewallet/simplewallet.cpp index 575b711d5..d625634c8 100644 --- a/src/simplewallet/simplewallet.cpp +++ b/src/simplewallet/simplewallet.cpp @@ -3511,6 +3511,9 @@ bool simple_wallet::submit_transfer(const std::vector<std::string> &args_) catch (const tools::error::tx_rejected& e) { fail_msg_writer() << (boost::format(tr("transaction %s was rejected by daemon with status: ")) % get_transaction_hash(e.tx())) << e.status(); + std::string reason = e.reason(); + if (!reason.empty()) + fail_msg_writer() << tr("Reason: ") << reason; } catch (const tools::error::tx_sum_overflow& e) { |