From a30d0f36b36785d95404707807ee216d23bc0a77 Mon Sep 17 00:00:00 2001 From: lightclient Date: Tue, 4 Feb 2025 13:25:23 -0700 Subject: [PATCH] consensus/misc/eip4844: address piconit --- consensus/misc/eip4844/eip4844_test.go | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/consensus/misc/eip4844/eip4844_test.go b/consensus/misc/eip4844/eip4844_test.go index 846f35786c..7d221aa96e 100644 --- a/consensus/misc/eip4844/eip4844_test.go +++ b/consensus/misc/eip4844/eip4844_test.go @@ -57,12 +57,15 @@ func TestCalcExcessBlobGas(t *testing.T) { } for i, tt := range tests { blobGasUsed := uint64(tt.blobs) * params.BlobTxBlobGasPerBlob - header := &types.Header{ + head := &types.Header{ + Time: *config.CancunTime, + } + parent := &types.Header{ Time: *config.CancunTime, ExcessBlobGas: &tt.excess, BlobGasUsed: &blobGasUsed, } - result := CalcExcessBlobGas(config, header, header) + result := CalcExcessBlobGas(config, parent, head) if result != tt.want { t.Errorf("test %d: excess blob gas mismatch: have %v, want %v", i, result, tt.want) }