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

Suggest 100 wei constant as tip in transactions #1561

Merged
merged 2 commits into from
Dec 6, 2024

Conversation

yaziciahmet
Copy link
Contributor

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?

Copy link

codecov bot commented Dec 5, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 77.8%. Comparing base (7c47f06) to head (ce10c12).
Report is 1 commits behind head on release-v0.5.5.

Additional details and impacted files
Files with missing lines Coverage Δ
crates/ethereum-rpc/src/ethereum.rs 100.0% <ø> (ø)
crates/ethereum-rpc/src/gas_price/cache.rs 64.6% <ø> (-30.5%) ⬇️
crates/ethereum-rpc/src/gas_price/gas_oracle.rs 51.1% <ø> (-29.5%) ⬇️

... and 1 file with indirect coverage changes

crates/ethereum-rpc/src/ethereum.rs Outdated Show resolved Hide resolved
@@ -21,6 +21,7 @@ impl<C: sov_modules_api::Context> BlockCache<C> {
}

/// Gets block from cache or from provider
#[allow(unused)]
Copy link
Contributor

Choose a reason for hiding this comment

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

Why is that?

Copy link
Contributor Author

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.

@eyusufatik eyusufatik merged commit b0700d4 into release-v0.5.5 Dec 6, 2024
14 checks passed
@eyusufatik eyusufatik deleted the yaziciahmet/suggest-small-constant-tip branch December 6, 2024 12:01
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.

4 participants