consensus/misc: fix min gas limit error message (#28085)
This commit is contained in:
parent
1efd12f695
commit
12ef276a7d
@ -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 New Issue
Block a user