Skip to content
This repository was archived by the owner on Dec 23, 2024. It is now read-only.

Commit 12ef276

Browse files
authored
consensus/misc: fix min gas limit error message (#28085)
1 parent 1efd12f commit 12ef276

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

consensus/misc/gaslimit.go

+1-2
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717
package misc
1818

1919
import (
20-
"errors"
2120
"fmt"
2221

2322
"github.com/ethereum/go-ethereum/params"
@@ -36,7 +35,7 @@ func VerifyGaslimit(parentGasLimit, headerGasLimit uint64) error {
3635
return fmt.Errorf("invalid gas limit: have %d, want %d +-= %d", headerGasLimit, parentGasLimit, limit-1)
3736
}
3837
if headerGasLimit < params.MinGasLimit {
39-
return errors.New("invalid gas limit below 5000")
38+
return fmt.Errorf("invalid gas limit below %d", params.MinGasLimit)
4039
}
4140
return nil
4241
}

0 commit comments

Comments
 (0)