Skip to content

Commit

Permalink
internal/ethapi: listen to ctx cancellation in access list (#29686)
Browse files Browse the repository at this point in the history
  • Loading branch information
holiman committed Apr 30, 2024
1 parent bd6bc37 commit 5e07054
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions internal/ethapi/api.go
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 5e07054

Please sign in to comment.