Skip to content

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

@roberto-bayardo roberto-bayardo force-pushed the master branch 2 times, most recently from fdc336e to 7a7479d Compare January 27, 2022 23:28
@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