forked from cerc-io/plugeth
eth,consensus: replace noarg fmt.Errorf with errors.New (#27330)
* eth: replace noarg fmt.Errorf with errors.New Signed-off-by: jsvisa <delweng@gmail.com> * consensus: replace noarg fmt.Errorf with errors.New Signed-off-by: jsvisa <delweng@gmail.com> --------- Signed-off-by: jsvisa <delweng@gmail.com>
This commit is contained in:
@@ -299,10 +299,10 @@ func (c *Clique) verifyHeader(chain consensus.ChainHeaderReader, header *types.H
|
||||
return fmt.Errorf("invalid gasLimit: have %v, max %v", header.GasLimit, params.MaxGasLimit)
|
||||
}
|
||||
if chain.Config().IsShanghai(header.Number, header.Time) {
|
||||
return fmt.Errorf("clique does not support shanghai fork")
|
||||
return errors.New("clique does not support shanghai fork")
|
||||
}
|
||||
if chain.Config().IsCancun(header.Number, header.Time) {
|
||||
return fmt.Errorf("clique does not support cancun fork")
|
||||
return errors.New("clique does not support cancun fork")
|
||||
}
|
||||
// All basic checks passed, verify cascading fields
|
||||
return c.verifyCascadingFields(chain, header, parents)
|
||||
|
||||
Reference in New Issue
Block a user