-
Notifications
You must be signed in to change notification settings - Fork 3.5k
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
l2geth: replica gas estimation fix #519
Conversation
🦋 Changeset detectedLatest commit: fc3c0a6 The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
4249af4
to
fc3c0a6
Compare
Noticing #430 on this PR |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me. In the future we'll want to figure out a better way to communicate the fee calculation algorithm to replicas, or perhaps construct a service which serves that information that replicas can call out to.
|
* l2geth: replica must also keep track of gas * l2geth: refactor sequencer loop * l2geth: updateL1GasPrice comment * l2geth: explicitly test gas updating * l2geth: add changeset
Description
This PR fixes a problem with the verifier/replica where it does not keep track of the current gas price. This is bad because it would make them not usable for
eth_estimateGas
. Foreth_estimateGas
to work, the node must know the current L1 gas price.It abstracts the update L1 gas price logic into its own function and then adds it to the verifier codepath so both the verifier and the sequencer keep track of the L1 gas price.
It builds off of:
SyncService.updateL1GasPrice
directlyRelated: