Skip to content

Commit

Permalink
Revert "consensus/misc: fix min gas limit error message (ethereum#28085
Browse files Browse the repository at this point in the history
…)"

This reverts commit 804db31.
  • Loading branch information
devopsbo3 authored Nov 10, 2023
1 parent f81159d commit b3a3103
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion consensus/misc/gaslimit.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
package misc

import (
"errors"
"fmt"

"github.com/ethereum/go-ethereum/params"
Expand All @@ -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
}

0 comments on commit b3a3103

Please sign in to comment.