mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-20 10:52:25 +00:00
Revert "consensus/misc: fix min gas limit error message (#28085)"
This reverts commit 804db3128a.
This commit is contained in:
parent
dc4adecfb1
commit
48d22074d2
1 changed files with 2 additions and 1 deletions
|
|
@ -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
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue