Skip to content

Commit a30d0f3

Browse files
committed
consensus/misc/eip4844: address piconit
1 parent 0b3e4b9 commit a30d0f3

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

consensus/misc/eip4844/eip4844_test.go

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,12 +57,15 @@ func TestCalcExcessBlobGas(t *testing.T) {
5757
}
5858
for i, tt := range tests {
5959
blobGasUsed := uint64(tt.blobs) * params.BlobTxBlobGasPerBlob
60-
header := &types.Header{
60+
head := &types.Header{
61+
Time: *config.CancunTime,
62+
}
63+
parent := &types.Header{
6164
Time: *config.CancunTime,
6265
ExcessBlobGas: &tt.excess,
6366
BlobGasUsed: &blobGasUsed,
6467
}
65-
result := CalcExcessBlobGas(config, header, header)
68+
result := CalcExcessBlobGas(config, parent, head)
6669
if result != tt.want {
6770
t.Errorf("test %d: excess blob gas mismatch: have %v, want %v", i, result, tt.want)
6871
}

0 commit comments

Comments
 (0)