Skip to content

Commit 5e07054

Browse files
authored
internal/ethapi: listen to ctx cancellation in access list (#29686)
1 parent bd6bc37 commit 5e07054

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

internal/ethapi/api.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1524,6 +1524,9 @@ func AccessList(ctx context.Context, b Backend, blockNrOrHash rpc.BlockNumberOrH
15241524
prevTracer = logger.NewAccessListTracer(*args.AccessList, args.from(), to, precompiles)
15251525
}
15261526
for {
1527+
if err := ctx.Err(); err != nil {
1528+
return nil, 0, nil, err
1529+
}
15271530
// Retrieve the current access list to expand
15281531
accessList := prevTracer.AccessList()
15291532
log.Trace("Creating access list", "input", accessList)

0 commit comments

Comments
 (0)