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

handle EIP-1559 blocks & fee burning #88

Merged
merged 1 commit into from
Jan 27, 2022

Conversation

roberto-bayardo
Copy link
Contributor

Since the london fork, transaction fees are at least in part burnt and are computed differently than previously. This PR computes proper tx fees and burnt fee amounts for transactions in EIP-1559 blocks.

Testing: I have added a test case that involves a real post-london block from mainnet that contains 6 EIP-1559 type transactions and 1 legacy transaction. I have confirmed that the values appearing in the block_response FEE operations match the actual fee sent to the miner & burnt as reported in etherscan, for all 7 of the transactions.

@shrimalmadhur
Copy link
Contributor

Hey @roberto-bayardo , can you fix the linting issue in this? otherwise this PR looks good to me. Thanks

@shrimalmadhur shrimalmadhur merged commit 4497658 into coinbase:master Jan 27, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants