-
Notifications
You must be signed in to change notification settings - Fork 34
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
Suggest 100 wei constant as tip in transactions #1561
Suggest 100 wei constant as tip in transactions #1561
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files
|
@@ -21,6 +21,7 @@ impl<C: sov_modules_api::Context> BlockCache<C> { | |||
} | |||
|
|||
/// Gets block from cache or from provider | |||
#[allow(unused)] |
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.
Why is that?
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.
It is not used, but I think it is too early to remove unused parts related to gas price oracle. We should keep them temporarily until we see that current suggestion mechanism works fine.
Description
As a rollup, tips do not make much sense for us, as we will have congestions very rarely, and we already have dynamic basefee algorithm in place. After discussions with @eyusufatik , we decided to suggest 100 wei as tip always.
First we thought about returning 0, but then we would lose the ability to order EIP-1559 transactions completely since there won't be any chance to speed up in rare times of congestion. Hence, we settled on 100 wei, which should almost make no difference to price in regular times, but also should allow people to bump the tips by 10% in case of congestion.
Linked Issues
Testing
Describe how these changes were tested. If you've added new features, have you added unit tests?
Docs
Describe where this code is documented. If it changes a documented interface, have the docs been updated?