mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-06-07 23:48:36 +00:00
consensus/misc: fix min gas limit error message (#28085)
This commit is contained in:
parent
1efd12f695
commit
12ef276a7d
1 changed files with 1 additions and 2 deletions
|
|
@ -17,7 +17,6 @@
|
||||||
package misc
|
package misc
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"errors"
|
|
||||||
"fmt"
|
"fmt"
|
||||||
|
|
||||||
"github.com/ethereum/go-ethereum/params"
|
"github.com/ethereum/go-ethereum/params"
|
||||||
|
|
@ -36,7 +35,7 @@ func VerifyGaslimit(parentGasLimit, headerGasLimit uint64) error {
|
||||||
return fmt.Errorf("invalid gas limit: have %d, want %d +-= %d", headerGasLimit, parentGasLimit, limit-1)
|
return fmt.Errorf("invalid gas limit: have %d, want %d +-= %d", headerGasLimit, parentGasLimit, limit-1)
|
||||||
}
|
}
|
||||||
if headerGasLimit < params.MinGasLimit {
|
if headerGasLimit < params.MinGasLimit {
|
||||||
return errors.New("invalid gas limit below 5000")
|
return fmt.Errorf("invalid gas limit below %d", params.MinGasLimit)
|
||||||
}
|
}
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue