Skip to content

Commit

Permalink
fix: double calls to trace{Start,End}Transaction (hyperledger#6247)
Browse files Browse the repository at this point in the history
Signed-off-by: Franklin Delehelle <franklin.delehelle@odena.eu>
  • Loading branch information
delehef authored Dec 6, 2023
1 parent 254dd6d commit 2513088
Showing 1 changed file with 0 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,6 @@ private List<TransactionProcessingResult> trace(
.orElse(BlobGas.ZERO));

final WorldUpdater worldUpdater = chainUpdater.getNextUpdater();
tracer.traceStartTransaction(worldUpdater, transaction);
final TransactionProcessingResult result =
transactionProcessor.processTransaction(
blockchain,
Expand All @@ -225,16 +224,6 @@ private List<TransactionProcessingResult> trace(
false,
blobGasPrice);

long transactionGasUsed = transaction.getGasLimit() - result.getGasRemaining();
tracer.traceEndTransaction(
worldUpdater,
transaction,
result.isSuccessful(),
result.getOutput(),
result.getLogs(),
transactionGasUsed,
0);

results.add(result);
});

Expand Down

0 comments on commit 2513088

Please sign in to comment.