-
Notifications
You must be signed in to change notification settings - Fork 3.8k
Conversation
@@ -2633,6 +2628,12 @@ namespace eosio { | |||
fc::optional<transaction_id_type> trx_id; | |||
fc::raw::unpack( ds, trx_id ); | |||
if( trx_id ) { | |||
if (trx_in_progress_sz > def_max_trx_in_progress_size) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
needs the exact same block of code before line 2649, except you will replace *trx_id with ptr->id(). This will make sure that we check the max trx when the optional trx_id is not present. This would be similar to the trx_message_v0_which case, where we have to read in the complete transaction to be able to calculate the transaction's id.
snprintf(reason, 72, "Dropping trx, too many trx in progress %lu bytes", trx_in_progress_sz); | ||
my_impl->producer_plug->log_failed_transaction(*trx_id, reason); | ||
return true; | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
also, at line 2646, change EOS_ASSERT(...) to:
if (trx_id && ptr && *trx_id != ptr->id()) {
...->log_failed_trasaction(ptr->id(), "... Provided trx_id does not ..."
EOS_ASSERT(false,...)
}
}
plugins/net_plugin/net_plugin.cpp
Outdated
|
||
if (ptr && trx_id && *trx_id != ptr->id()) { | ||
my_impl->producer_plug->log_failed_transaction(*trx_id, "Provided trx_id does not match provided packed_transaction"); | ||
EOS_ASSERT(true, transaction_id_type_exception, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
false
LGTM |
Change Description
This PR splits the transaction_tracing logger into transaction_success_tracing and transaction_failure_tracing loggers; in addition, it adds logging statement for failed signature condition.
Change Type
Select ONE
Consensus Changes
API Changes
Documentation Additions
transaction_tracing
logger is removedThe following two loggers are added
transaction_success_tracing
- detailed log that emits successful verdicts from relay nodes on the P2P network.transaction_failure_tracing
- detailed log that emits failed verdicts from relay nodes on the P2P network.