Skip to content

Commit

Permalink
apply local modification
Browse files Browse the repository at this point in the history
  • Loading branch information
jaybbbb committed Jan 23, 2025
1 parent c61ca60 commit 3bc2962
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions state/transaction.go
Original file line number Diff line number Diff line change
Expand Up @@ -863,6 +863,11 @@ func (s *State) EstimateGas(transaction *types.Transaction, senderAddress common
// If the transaction didn't fail => make this ok value the high end
highEnd = mid
}

if totalExecutionTime.Milliseconds() > 1000 {
log.Debugf("NODEINFRA-SILICON, stop searching when totalExecutionTime > 1000")
break
}
}

executions := int64(len(txExecutions))
Expand Down

0 comments on commit 3bc2962

Please sign in to comment.