Skip to content

Commit

Permalink
remove maxgaslimit from trace_call and ilk
Browse files Browse the repository at this point in the history
remove maxgaslimit from trace_call and ilk
  • Loading branch information
bgelb committed Oct 20, 2023
1 parent 3b07928 commit 00a2f9b
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions turbo/jsonrpc/trace_adhoc.go
Original file line number Diff line number Diff line change
Expand Up @@ -972,9 +972,6 @@ func (api *TraceAPIImpl) Call(ctx context.Context, args TraceCallParam, traceTyp
blockCtx := transactions.NewEVMBlockContext(engine, header, blockNrOrHash.RequireCanonical, tx, api._blockReader)
txCtx := core.NewEVMTxContext(msg)

blockCtx.GasLimit = math.MaxUint64
blockCtx.MaxGasLimit = true

// Increment the BlockNumber and Time values to simulate the transaction of
// interest in the next (N+1) block instead of the current (already mined) one
blockCtx.Time += 12
Expand Down Expand Up @@ -1159,10 +1156,8 @@ func (api *TraceAPIImpl) doCallMany(ctx context.Context, dbtx kv.Tx, msgs []type
defer cancel()
results := []*TraceCallResult{}

useParent := false
if header == nil {
header = parentHeader
useParent = true
}

for txIndex, msg := range msgs {
Expand Down Expand Up @@ -1211,10 +1206,6 @@ func (api *TraceAPIImpl) doCallMany(ctx context.Context, dbtx kv.Tx, msgs []type
blockCtx.BlockNumber += 1
}

if useParent {
blockCtx.GasLimit = math.MaxUint64
blockCtx.MaxGasLimit = true
}
ibs.Reset()
// Create initial IntraBlockState, we will compare it with ibs (IntraBlockState after the transaction)

Expand Down

0 comments on commit 00a2f9b

Please sign in to comment.