Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Previously, the L1 gas price was being fetched from a remote node and being held in memory. Now the L1 gas price is in a smart contract and the `SyncService` will periodically update the L1 gas price in an in memory cache to ensure that users that are sending transactions are paying enough. This also reads the overhead from the `OVM_GasPriceOracle` and rejects transactions with too low of a fee. The `tx.gasPrice` can now be variable, it no longer will reject transactions if the gas price isn't exactly the hardcoded number. The cache is now updated when the sender of a transaction included in the chain is from the current gas price oracle owner address. This depends on the cache being initialized at startup.
- Loading branch information
1 parent
67b6781
commit 19622d2
Showing
15 changed files
with
1,923 additions
and
371 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
'@eth-optimism/l2geth': patch | ||
--- | ||
|
||
Use `OVM_GasPriceOracle` based L1 base fee instead of fetching it from remote |
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.