-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Access list API #144
Comments
After going through the relevant source code on Geth (https://github.com/ethereum/go-ethereum/blob/master/internal/ethapi/api.go#L1545-L1549), we will need to expose this method through the Context: // Apply the transaction with the access list tracer
tracer := logger.NewAccessListTracer(accessList, args.from(), to, precompiles)
config := vm.Config{Tracer: tracer.Hooks(), NoBaseFee: true}
vmenv := b.GetEVM(ctx, msg, statedb, header, &config, nil)
res, err := core.ApplyMessage(vmenv, msg, new(core.GasPool).AddGas(msg.GasLimit)) The EVM Gateway does not have access to the Geth VM, so I think this is something that should be exposed as a Cadence function from the |
The implementation of this optimization feature should be done in the next phase. |
@m-Peter after we build local state will this be doable? |
@sideninja Good question, I need to do some exploration on this, and see what needs to be done in order to support this. |
@sideninja After checking this again, it seems that having a |
No description provided.
The text was updated successfully, but these errors were encountered: