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

fix(l1): use latest block base fee as default gas price #1023

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

ilitteri
Copy link
Contributor

Motivation

Starting at the genesis we do not have a history of blocks to compute the mean gas price, hence we added a default gas price in a previous fix to this endpoint handler. The problem now is that this default value is usually lower than the base fee, preventing the transactions from being included.

Description

We now use the double of the latest block base fee as the default gas price either when there's no block history (we're at the genesis) or the mean gas price is 0 (a dev blockchain is advancing with empty blocks).

@ilitteri ilitteri self-assigned this Oct 30, 2024
@ilitteri ilitteri requested a review from a team as a code owner October 30, 2024 17:53
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.

1 participant