diff --git a/consensus/beacon/consensus.go b/consensus/beacon/consensus.go index dbba73947f32..6a8a902422d7 100644 --- a/consensus/beacon/consensus.go +++ b/consensus/beacon/consensus.go @@ -251,7 +251,7 @@ func (beacon *Beacon) verifyHeader(chain consensus.ChainHeaderReader, header, pa return errors.New("missing withdrawalsHash") } if !shanghai && header.WithdrawalsHash != nil { - return fmt.Errorf("invalid withdrawalsHash: have %x, expected nil", header.WithdrawalsHash) + return fmt.Errorf("invalid withdrawalsHash: have %x, expected nil", *header.WithdrawalsHash) } // Verify the existence / non-existence of cancun-specific header fields cancun := chain.Config().IsCancun(header.Number, header.Time) diff --git a/consensus/clique/clique.go b/consensus/clique/clique.go index a6f02c8c2b1c..323744c384d1 100644 --- a/consensus/clique/clique.go +++ b/consensus/clique/clique.go @@ -297,7 +297,7 @@ func (c *Clique) verifyHeader(chain consensus.ChainHeaderReader, header *types.H } // Verify the non-existence of withdrawalsHash. if header.WithdrawalsHash != nil { - return fmt.Errorf("invalid withdrawalsHash: have %x, expected nil", header.WithdrawalsHash) + return fmt.Errorf("invalid withdrawalsHash: have %x, expected nil", *header.WithdrawalsHash) } if chain.Config().IsCancun(header.Number, header.Time) { return errors.New("clique does not support cancun fork") @@ -345,7 +345,7 @@ func (c *Clique) verifyCascadingFields(chain consensus.ChainHeaderReader, header if !chain.Config().IsLondon(header.Number) { // Verify BaseFee not present before EIP-1559 fork. if header.BaseFee != nil { - return fmt.Errorf("invalid baseFee before fork: have %d, want ", header.BaseFee) + return fmt.Errorf("invalid baseFee before fork: have %s, want ", header.BaseFee) } if err := misc.VerifyGaslimit(parent.GasLimit, header.GasLimit); err != nil { return err diff --git a/consensus/ethash/consensus.go b/consensus/ethash/consensus.go index 376cbac8c095..9ac568702d57 100644 --- a/consensus/ethash/consensus.go +++ b/consensus/ethash/consensus.go @@ -252,7 +252,7 @@ func (ethash *Ethash) verifyHeader(chain consensus.ChainHeaderReader, header, pa if !chain.Config().IsLondon(header.Number) { // Verify BaseFee not present before EIP-1559 fork. if header.BaseFee != nil { - return fmt.Errorf("invalid baseFee before fork: have %d, expected 'nil'", header.BaseFee) + return fmt.Errorf("invalid baseFee before fork: have %s, expected 'nil'", header.BaseFee) } if err := misc.VerifyGaslimit(parent.GasLimit, header.GasLimit); err != nil { return err @@ -270,7 +270,7 @@ func (ethash *Ethash) verifyHeader(chain consensus.ChainHeaderReader, header, pa } // Verify the non-existence of withdrawalsHash. if header.WithdrawalsHash != nil { - return fmt.Errorf("invalid withdrawalsHash: have %x, expected nil", header.WithdrawalsHash) + return fmt.Errorf("invalid withdrawalsHash: have %x, expected nil", *header.WithdrawalsHash) } if chain.Config().IsCancun(header.Number, header.Time) { return errors.New("ethash does not support cancun fork")