forked from ethereum-optimism/op-geth
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix receipt effectiveGasPrice calculation (#218)
* Fix receipt effectiveGasPrice calculation For non dynamic txs we can always use the gas price. For dynamic txs we need the base fee to be able to calculate the effectiveGasPrice. Pre gingerbread we don't have it, because we have no way to get it from the state, and most node's won't have the state. Post gingerbread, we have the base fee on the block so we can calculate the effectiveGasPrice for dynamic txs as long as they don't have a custom fee currency, if they do we can't calculate the effectiveGasPrice because we have no way to get the exchange rate from the state. * Use inner tx function to calcluate receipt effectiveGasPrice * Add tests for effective gas price receipt derivation * Remove unused config variable * Add test case for BlobTx * Add condition to support celo denominated txs * Convert inner comments to docstrings * Fix test for CeloDenominatedTx type * Add support for chain config without gingerbred This is to allow upstream tests to function correctly.
- Loading branch information
Showing
2 changed files
with
147 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters