Skip to content

Commit

Permalink
consensus/misc: fix min gas limit error message (#28085)
Browse files Browse the repository at this point in the history
  • Loading branch information
0xmuralik authored Sep 11, 2023
1 parent 1efd12f commit 12ef276
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions consensus/misc/gaslimit.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
package misc

import (
"errors"
"fmt"

"github.com/ethereum/go-ethereum/params"
Expand All @@ -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)
}
if headerGasLimit < params.MinGasLimit {
return errors.New("invalid gas limit below 5000")
return fmt.Errorf("invalid gas limit below %d", params.MinGasLimit)
}
return nil
}

0 comments on commit 12ef276

Please sign in to comment.