Skip to content

Commit

Permalink
consensus/misc/eip4844: address piconit
Browse files Browse the repository at this point in the history
  • Loading branch information
lightclient committed Feb 4, 2025
1 parent 0b3e4b9 commit a30d0f3
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions consensus/misc/eip4844/eip4844_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
Expand Down

0 comments on commit a30d0f3

Please sign in to comment.