Skip to content

Commit

Permalink
internal/ethapi: listen to ctx cancellation in access list (ethereum#…
Browse files Browse the repository at this point in the history
  • Loading branch information
holiman authored and jorgemmsilva committed Jun 17, 2024
1 parent 0b71afb commit 996d297
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions internal/ethapi/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -1524,6 +1524,9 @@ func AccessList(ctx context.Context, b Backend, blockNrOrHash rpc.BlockNumberOrH
prevTracer = logger.NewAccessListTracer(*args.AccessList, args.from(), to, precompiles)
}
for {
if err := ctx.Err(); err != nil {
return nil, 0, nil, err
}
// Retrieve the current access list to expand
accessList := prevTracer.AccessList()
log.Trace("Creating access list", "input", accessList)
Expand Down

0 comments on commit 996d297

Please sign in to comment.