Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

eip-4844: receipts to include dataGasPrice and dataGasUsed #7385

Merged
merged 2 commits into from
Apr 28, 2023

Conversation

racytech
Copy link
Contributor

Small additions to block receipts. Now it includes dataGasPrice and dataGasUsed. dataGas is a new type of a gas and blobs are priced in it.

@@ -646,6 +647,15 @@ func (api *APIImpl) GetTransactionReceipt(ctx context.Context, txnHash common.Ha
return nil, fmt.Errorf("getReceipts error: %w", err)
}

var edg *big.Int
if n := block.Number().Uint64(); n > 0 {
if parentHeader, err := api._blockReader.HeaderByNumber(ctx, tx, n-1); err != nil {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please use Header() instead of HeaderByNumber because you know parentHash here

@racytech racytech requested a review from AskAlexSharov April 26, 2023 15:12
@AlexeyAkhunov AlexeyAkhunov merged commit 631681c into erigontech:devel Apr 28, 2023
@VBulikov VBulikov mentioned this pull request Feb 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants