mirror of
https://github.com/monero-project/monero.git
synced 2025-08-08 10:32:20 -04:00
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.
This commit is contained in:
parent
1559c71ef2
commit
24b3e9007a
10 changed files with 98 additions and 23 deletions
|
@ -40,6 +40,13 @@ namespace cryptonote
|
|||
bool m_verifivation_failed; //bad tx, should drop connection
|
||||
bool m_verifivation_impossible; //the transaction is related with an alternative blockchain
|
||||
bool m_added_to_pool;
|
||||
bool m_low_mixin;
|
||||
bool m_double_spend;
|
||||
bool m_invalid_input;
|
||||
bool m_invalid_output;
|
||||
bool m_too_big;
|
||||
bool m_overspend;
|
||||
bool m_fee_too_low;
|
||||
};
|
||||
|
||||
struct block_verification_context
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue