Skip to content

Commit

Permalink
Merge pull request #3379 from marta-lokhova/simulate_apply_fix
Browse files Browse the repository at this point in the history
closeLedger: only call sizeOp once

Reviewed-by: jonjove
  • Loading branch information
latobarita authored Mar 18, 2022
2 parents 99d82e5 + d53944f commit d387c6a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/ledger/LedgerManagerImpl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -820,7 +820,8 @@ LedgerManagerImpl::closeLedger(LedgerCloseData const& ledgerData)
mApp.getConfig().OP_APPLY_SLEEP_TIME_WEIGHT_FOR_TESTING.begin(),
mApp.getConfig().OP_APPLY_SLEEP_TIME_WEIGHT_FOR_TESTING.end());
std::chrono::microseconds sleepFor{0};
for (size_t i = 0; i < txSet->sizeOp(); i++)
auto txSetSizeOp = txSet->sizeOp();
for (size_t i = 0; i < txSetSizeOp; i++)
{
sleepFor +=
mApp.getConfig()
Expand Down

0 comments on commit d387c6a

Please sign in to comment.