Skip to content

Feat: use SlowAdjustingFeeUpdate to update fees based on congestion #1686

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

Merged
merged 1 commit into from
May 29, 2025

Conversation

RomarQ
Copy link
Collaborator

@RomarQ RomarQ commented May 27, 2025

The template runtime configuration sets FeeMultiplierUpdate to ConstFeeMultiplier, which does not take into consideration the current usage of the network.

While this is a template, it is still good to provide a safe example for anyone integrating frontier in their runtimes.

When using ConstFeeMultiplier, fees do not reflect congestion, an attacker could cause a DoS against all zero-tip transactions for an extended period of time by just paying the regular transaction fees (and not exponentially raising fees, which would at least limit the duration of that attack).

@RomarQ RomarQ self-assigned this May 27, 2025
@RomarQ RomarQ marked this pull request as ready for review May 27, 2025 17:31
@RomarQ RomarQ requested a review from sorpaas as a code owner May 27, 2025 17:31
@boundless-forest boundless-forest merged commit b146521 into master May 29, 2025
4 checks passed
@boundless-forest boundless-forest deleted the rq/improvement branch May 29, 2025 02:25
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.

2 participants