Skip to content

Commit

Permalink
Merge pull request #151 from AntelopeIO/GH-149-sub-3-strike
Browse files Browse the repository at this point in the history
[3.2] Add 3-strike rule to speculative blocks
  • Loading branch information
heifner authored Sep 15, 2022
2 parents 86ca76d + d6b3efe commit 44ec05b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/producer_plugin/producer_plugin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1916,7 +1916,7 @@ producer_plugin_impl::push_transaction( const fc::time_point& block_deadline,
auto start = fc::time_point::now();

auto first_auth = trx->packed_trx()->get_transaction().first_authorizer();
if( _pending_block_mode == pending_block_mode::producing && _account_fails.failure_limit( first_auth ) ) {
if( _account_fails.failure_limit( first_auth ) ) {
if( next ) {
auto except_ptr = std::static_pointer_cast<fc::exception>( std::make_shared<tx_cpu_usage_exceeded>(
FC_LOG_MESSAGE( error, "transaction ${id} exceeded failure limit for account ${a}",
Expand Down

0 comments on commit 44ec05b

Please sign in to comment.