mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-17 17:33:47 +00:00
consensus/misc/eip4844: address piconit
This commit is contained in:
parent
0b3e4b9062
commit
a30d0f36b3
1 changed files with 5 additions and 2 deletions
|
|
@ -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)
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue