mirror of
https://gitlab.com/pulsechaincom/erigon-pulse.git
synced 2025-01-03 09:37:38 +00:00
Optimize gas by default in eth_createAccessList (#8337)
Enable gas optimizations of PRs #3453 & #8261 unless the `optimizeGas` argument is explicitly set to `false`.
This commit is contained in:
parent
3775f4a5d4
commit
0427b162c4
@ -558,7 +558,7 @@ func (api *APIImpl) CreateAccessList(ctx context.Context, args ethapi2.CallArgs,
|
||||
errString = res.Err.Error()
|
||||
}
|
||||
accessList := &accessListResult{Accesslist: &accessList, Error: errString, GasUsed: hexutil.Uint64(res.UsedGas)}
|
||||
if optimizeGas != nil && *optimizeGas {
|
||||
if optimizeGas == nil || *optimizeGas { // optimize gas unless explicitly told not to
|
||||
optimizeWarmAddrInAccessList(accessList, *args.From)
|
||||
optimizeWarmAddrInAccessList(accessList, to)
|
||||
optimizeWarmAddrInAccessList(accessList, header.Coinbase)
|
||||
|
Loading…
Reference in New Issue
Block a user