core: infer blobGasUsed in chain maker (#28212)

Same way that the gasUsed in header is updated when a tx 
is added we should update blob gas used instead of requiring caller
to set it manually.
This commit is contained in:
Sina Mahmoodi
2023-09-29 10:44:28 +02:00
committed by GitHub
parent 1f6e63900d
commit 0ded110b80
2 changed files with 3 additions and 8 deletions
-3
View File
@@ -1448,9 +1448,6 @@ func setupReceiptBackend(t *testing.T, genBlocks int) (*testBackend, []common.Ha
b.AddTx(tx)
txHashes[i] = tx.Hash()
}
if i == 5 {
b.SetBlobGas(params.BlobTxBlobGasPerBlob)
}
b.SetPoS()
})
return backend, txHashes