Skip to content

jovian: Add & populate receipt fields (daFootprintGasScalar, blobGasUsed) #708

@sebastianst

Description

@sebastianst

Following our pattern for previous forks, we want to add a new fields to the API receipt, daFootprintGasScalar uint16, and populate it when requesting a receipt via the API, at

func (rs Receipts) DeriveFields(config *params.ChainConfig, blockHash common.Hash, blockNumber uint64, blockTime uint64, baseFee *big.Int, blobGasPrice *big.Int, txs []*Transaction) error {

when Jovian is active, and also set the receipt's blobGasUsed field to the transaction's DA footprint.

Note that this is not a consensus change, as the receipt hash only contains these fields:

// receiptRLP is the consensus encoding of a receipt.
type receiptRLP struct {
PostStateOrStatus []byte
CumulativeGasUsed uint64
Bloom Bloom
Logs []*Log
}

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions