-
Notifications
You must be signed in to change notification settings - Fork 3.3k
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
txmgr: Add min basefee and tip cap parameters to enforce fee minima #8799
Conversation
ac391ab
to
bb146c4
Compare
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.
LGTM
I am wondering, however: when it is time to leverage these new flags (likely to avoid poor behavior during low gas periods), what is the operational expectation? Will this flag be active on test-nets by default, or will the service be restarted with these values when encountering issues?
5efe0a6
to
900ec63
Compare
bb146c4
to
86e731e
Compare
Semgrep found 3 Prefer |
054f903
to
fea6676
Compare
fea6676
to
4b9e561
Compare
WalkthroughWalkthroughThe updates involve the introduction of a new conversion function in Changes
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? TipsChat with CodeRabbit Bot (
|
I assume we just configure this once on a testnet that's causing trouble, like L1 Goerli, and keep the configuration change. E.g. on Goerli, it doesn't really matter whether we pay 1 wei or 100,000 wei gas fees. |
Description
Adds two new parameters to the transaction manager that specify a min basefee and tip cap to use when performing fee estimations.
Default is off, so no minima are enforced. This is primarily helpful for low-fee testnets.
Tests
Test added for all combinations of the parameters.
Additional context
This allows for dealing with super-low fee testnets, where sudden fee "spikes" will keep transactions from being included, even though the absolute fees are still very low.