diff options
| author | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2016-03-27 12:35:36 +0100 |
|---|---|---|
| committer | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2016-03-27 12:37:18 +0100 |
| commit | 24b3e9007a8ad0684edcee51df444b21a033e4ba (patch) | |
| tree | 1cf18580df1d4e0e82038a745113bc36c7c9e305 /src/cryptonote_core/cryptonote_core.cpp | |
| parent | 1559c71ef221f09e345618442dd5dafb46b0c975 (diff) | |
| download | monzero-core-24b3e9007a8ad0684edcee51df444b21a033e4ba.tar.gz monzero-core-24b3e9007a8ad0684edcee51df444b21a033e4ba.tar.xz monzero-core-24b3e9007a8ad0684edcee51df444b21a033e4ba.zip | |
Convey tx verification failure reasons to the RPC client
This allows appropriate action to be taken, like displaying
the reason to the user.
Do just that in simplewallet, which should help a lot in
determining why users fail to send.
Also make it so a tx which is accepted but not relayed is
seen as a success rather than a failure.
Diffstat (limited to 'src/cryptonote_core/cryptonote_core.cpp')
| -rw-r--r-- | src/cryptonote_core/cryptonote_core.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/cryptonote_core/cryptonote_core.cpp b/src/cryptonote_core/cryptonote_core.cpp index c31be5acf..20b9f0b0b 100644 --- a/src/cryptonote_core/cryptonote_core.cpp +++ b/src/cryptonote_core/cryptonote_core.cpp @@ -489,6 +489,7 @@ namespace cryptonote { LOG_PRINT_L1("WRONG TRANSACTION BLOB, too big size " << tx_blob.size() << ", rejected"); tvc.m_verifivation_failed = true; + tvc.m_too_big = true; return false; } |
