From 76cad9bae5ddc964ce8915e006a27b11843313c3 Mon Sep 17 00:00:00 2001 From: colinlyguo Date: Tue, 23 Jan 2024 00:21:19 +0800 Subject: [PATCH] change default gas limit --- internal/ethapi/api.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/ethapi/api.go b/internal/ethapi/api.go index 80e32880c547..68b2ccf8ecad 100644 --- a/internal/ethapi/api.go +++ b/internal/ethapi/api.go @@ -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 } }