From b3a31031dfaa2d789942037fda0c12f237566bc0 Mon Sep 17 00:00:00 2001 From: devopsbo3 <69951731+devopsbo3@users.noreply.github.com> Date: Fri, 10 Nov 2023 12:31:54 -0600 Subject: [PATCH] Revert "consensus/misc: fix min gas limit error message (#28085)" This reverts commit 804db3128ac6657728a924535cb1fdc1ea1c54d6. --- consensus/misc/gaslimit.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/consensus/misc/gaslimit.go b/consensus/misc/gaslimit.go index dfcabd9a802c..25f35300b94d 100644 --- a/consensus/misc/gaslimit.go +++ b/consensus/misc/gaslimit.go @@ -17,6 +17,7 @@ package misc import ( + "errors" "fmt" "github.com/ethereum/go-ethereum/params" @@ -35,7 +36,7 @@ func VerifyGaslimit(parentGasLimit, headerGasLimit uint64) error { return fmt.Errorf("invalid gas limit: have %d, want %d +-= %d", headerGasLimit, parentGasLimit, limit-1) } if headerGasLimit < params.MinGasLimit { - return fmt.Errorf("invalid gas limit below %d", params.MinGasLimit) + return errors.New("invalid gas limit below 5000") } return nil }