Add a config option to override precompiles for Optimism execution.
The usecase for this change is to allow expensive precompiles, such as KZG point evaluation, to be replaced with a version that is more suitable for a given runtime.
For example, in the case of the fault proof program, executing the KZG point evaluation in MIPS32 requires over 15 billion steps. We'd like to offload this expensive execution to the op-program host, where it's much cheaper to execute.
This change modifies behavior only when vm.Config.OptimismPrecompileOverrides is set.
Add a config option to override precompiles for Optimism execution.
The usecase for this change is to allow expensive precompiles, such as KZG point evaluation, to be replaced with a version that is more suitable for a given runtime.
For example, in the case of the fault proof program, executing the KZG point evaluation in MIPS32 requires over 15 billion steps. We'd like to offload this expensive execution to the op-program host, where it's much cheaper to execute.
This change modifies behavior only when
vm.Config.OptimismPrecompileOverrides
is set.