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

Update TxPool base fee prior to filtering txs based on effective tip #477

Merged
merged 3 commits into from
Jan 30, 2024

Conversation

darioush
Copy link
Collaborator

@darioush darioush commented Jan 27, 2024

Why this should be merged

This change allows transactions that have used a base fee that is less than the last fee update's estimate but greater than the actual built block's fee to be included in the block.
This is particularly useful when the base fee is decreasing (with time) and the client is using an estimate that is based on the current time, but the periodic update has not taken effect yet.

How this works

Sets the value used to filter txs before filtering them

How this was tested

CI

@darioush darioush marked this pull request as ready for review January 27, 2024 00:16
Copy link
Collaborator

@ceyonur ceyonur left a comment

Choose a reason for hiding this comment

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

LGTM. I think this solution avoids that race condition.

@marun
Copy link

marun commented Jan 30, 2024

LGTM. I think this solution avoids that race condition.

Was there another proposal that contained a race condition?

@darioush
Copy link
Collaborator Author

Was there another proposal that contained a race condition?

24a0c34 was the original fix which has a race condition with the periodic updater changing the base fee. I think it's better that this is more accurate even if it messes up the code a little to thread through this parameter.

@darioush darioush enabled auto-merge (squash) January 30, 2024 23:47
@darioush darioush merged commit 1c74731 into master Jan 30, 2024
8 checks passed
@darioush darioush deleted the set-pool-basefee-on-blockbuild branch January 30, 2024 23:47
oxbee pushed a commit to taurusgroup/coreth that referenced this pull request Nov 6, 2024
…va-labs#477)

* Update TxPool base fee prior to filtering txs based on effective tip

* alt. fix
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

3 participants