Skip to content
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

[SHIP-2208] Enable EIP-1559 Transactions on Scroll #13687

Merged
merged 14 commits into from
Jul 3, 2024

Conversation

KodeyThomas
Copy link
Contributor

@KodeyThomas KodeyThomas commented Jun 25, 2024

Description

This PR enables EIP-1559 Transactions for Scroll. Although mostly just configuration changes, a soak test revealed that when enabling EIP-1559 transactions a significant amount of warnings occurred when using gas estimation.

This occurs due to the L1MessageTx transaction type being included in the gas estimation which we are unable to decode. This transaction type has been explicitly ignored during gas estimation using a similar mechanism to Celo which was introduced in #10660.

This PR also migrates away from the SuggestedPrice gas estimator to BlockHistoryEstimator

Motivation

SHIP-2208

mohamed-mehany
mohamed-mehany previously approved these changes Jun 25, 2024
Copy link
Collaborator

@mohamed-mehany mohamed-mehany left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!
Thanks for making this change.

Nit: Can we please add to the PR description that we're also changing the gas estimation mode from SuggestedPrice to BlockHistoryEstimator? To make it more readable for reviewers and since it's easy to miss in the changes.

PriceMin = '0'
EIP1559DynamicFees = true
PriceMin = '1 wei'
BumpMin = '100 wei'
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

based on the current gas Prices the BumpMin is too low, I'd least bump up a couple of gwei

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

happy to modify these values but we'll need to re-run the soak test and get QA signoff. during the tests we didn't encounter any issues with gas but i'm happy to adjust these values

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thats is because while running the tests there may not have been gas spikes. when there is a sudden gas spike & if the transaction needs to bump, bumping slowly with 100wei will take quite a long time to get the OCR rounds included. if we are worried about the soak tests, I'd say run a quicker one, since we are only bumping up, validating everything works should be enough

simsonraj
simsonraj previously approved these changes Jul 1, 2024
mohamed-mehany
mohamed-mehany previously approved these changes Jul 2, 2024

[GasEstimator.BlockHistory]
# Force an error if someone enables the estimator by accident; we never want to run the block history estimator on Scroll
BlockHistorySize = 0
BlockHistorySize = 200
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

200 seems rather large. Optimism has 24 which seems of a similar magnitude.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

agree, happy to reduce this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants