change default gas limit

This commit is contained in:
colinlyguo 2024-01-23 00:21:19 +08:00
parent 53f7872936
commit 76cad9bae5
No known key found for this signature in database
GPG key ID: 82E123BE1B68288B

View file

@ -1517,7 +1517,7 @@ func AccessList(ctx context.Context, b Backend, blockNrOrHash rpc.BlockNumberOrH
tmp := hexutil.Uint64(b.RPCGasCap())
args.Gas = &tmp
} else {
tmp := hexutil.Uint64(b.CurrentBlock().GasLimit)
tmp := hexutil.Uint64(math.MaxUint64 / 2)
args.Gas = &tmp
}
}