Skip to content

Commit 3714324

Browse files
committed
core: add blobdata to receipts
1 parent 803108e commit 3714324

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

core/types/receipt.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -345,6 +345,9 @@ func (rs Receipts) DeriveFields(config *params.ChainConfig, hash common.Hash, nu
345345
rs[i].ContractAddress = common.Address{}
346346
}
347347

348+
dataGasUsed := uint64(len(txs[i].BlobHashes()) * params.BlobTxDataGasPerBlob)
349+
rs[i].DataGasUsed = &dataGasUsed
350+
348351
// The used gas can be calculated based on previous r
349352
if i == 0 {
350353
rs[i].GasUsed = rs[i].CumulativeGasUsed

0 commit comments

Comments
 (0)