Skip to content

Commit 5ac3aa4

Browse files
committed
consensus/clique: fix ExcessBlobGas and BlobGasUsed error message formatting
1 parent 5e6f737 commit 5ac3aa4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

consensus/clique/clique.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -305,9 +305,9 @@ func (c *Clique) verifyHeader(chain consensus.ChainHeaderReader, header *types.H
305305
// Verify the non-existence of cancun-specific header fields
306306
switch {
307307
case header.ExcessBlobGas != nil:
308-
return fmt.Errorf("invalid excessBlobGas: have %d, expected nil", header.ExcessBlobGas)
308+
return fmt.Errorf("invalid excessBlobGas: have %d, expected nil", *header.ExcessBlobGas)
309309
case header.BlobGasUsed != nil:
310-
return fmt.Errorf("invalid blobGasUsed: have %d, expected nil", header.BlobGasUsed)
310+
return fmt.Errorf("invalid blobGasUsed: have %d, expected nil", *header.BlobGasUsed)
311311
case header.ParentBeaconRoot != nil:
312312
return fmt.Errorf("invalid parentBeaconRoot, have %#x, expected nil", header.ParentBeaconRoot)
313313
}

0 commit comments

Comments
 (0)