Skip to content
This repository has been archived by the owner on Aug 2, 2022. It is now read-only.

Commit

Permalink
Merge pull request #7612 from EOSIO/tester-explicit-billing-fix-1.7
Browse files Browse the repository at this point in the history
use explicit billing for unapplied and deferred transactions in tester - v1.7.x
  • Loading branch information
arhag committed Jul 9, 2019
2 parents b666c93 + 70725ad commit f31181c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions libraries/testing/tester.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ namespace eosio { namespace testing {
if( !skip_pending_trxs ) {
unapplied_transactions_type unapplied_trxs = control->get_unapplied_transactions(); // make copy of map
for (const auto& entry : unapplied_trxs ) {
auto trace = control->push_transaction(entry.second, fc::time_point::maximum());
auto trace = control->push_transaction(entry.second, fc::time_point::maximum(), DEFAULT_BILLED_CPU_TIME_US );
if(trace->except) {
trace->except->dynamic_rethrow_exception();
}
Expand All @@ -175,7 +175,7 @@ namespace eosio { namespace testing {
vector<transaction_id_type> scheduled_trxs;
while( (scheduled_trxs = get_scheduled_transactions() ).size() > 0 ) {
for (const auto& trx : scheduled_trxs ) {
auto trace = control->push_scheduled_transaction(trx, fc::time_point::maximum());
auto trace = control->push_scheduled_transaction(trx, fc::time_point::maximum(), DEFAULT_BILLED_CPU_TIME_US);
if(trace->except) {
trace->except->dynamic_rethrow_exception();
}
Expand Down

0 comments on commit f31181c

Please sign in to comment.