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.
Read IntrinsicGas from FeeCurrencyDirectory (#178)
* Add FeeCurrencyContext object to BlockContext This replaces the `BlockContext.ExchangeRates` with a wrapper object `BlockContext.FeeCurrencyContext`. This enables easier addition of fee-currency related information to the block context and passing around that information. The exchange-rates are now part of the `FeeCurrencyContext` * Add intrinsic gas retrieval from FeeCurrencyDirectory * Use intrinsic gas from FeeCurrencyDirectory in STF * Add test for intrinsic gas too high in fee currency * Add empty fee-currency context to tools and tests * Add minor code improvements Co-authored-by: Paul Lange <[email protected]> * Add comment for nil fee-currency code path * Add fee-currency-context to CeloBackend.NewEVM constructor --------- Co-authored-by: Paul Lange <[email protected]>
- Loading branch information
Showing
35 changed files
with
323 additions
and
121 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
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
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
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
Oops, something went wrong.