Skip to content
This repository was archived by the owner on Feb 17, 2025. It is now read-only.
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions state/transaction.go
Original file line number Diff line number Diff line change
Expand Up @@ -1011,9 +1011,7 @@ func (s *State) EstimateGas(transaction *types.Transaction, senderAddress common

executions := int64(len(txExecutions))
if executions > 0 {
log.Debugf("EstimateGas executed the TX %v times", executions)
averageExecutionTime := totalExecutionTime.Milliseconds() / executions
log.Debugf("EstimateGas tx execution average time is %v milliseconds", averageExecutionTime)
log.Infof("EstimateGas executed TX %v %d times in %d milliseconds", transaction.Hash(), executions, totalExecutionTime.Milliseconds())
} else {
log.Error("Estimate gas. Tx not executed")
}
Expand Down