internal/ethapi: listen to ctx cancellation in access list (#29686)
This commit is contained in:
parent
bd6bc37eec
commit
5e07054589
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user