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

core/txpool/legacypool: reheap the priced list if london fork not enabled #27481

Merged
merged 1 commit into from Jun 18, 2023

Conversation

lochjin
Copy link
Contributor

@lochjin lochjin commented Jun 16, 2023

Description

issue: #23690

Rationale

Because there is a memory leak on txpool priced urgent list, so force calls Reheap periodically on the txpool to evict old transactions from the priced list when London fork is not enabled.

@holiman
Copy link
Contributor

holiman commented Jun 16, 2023

Hi,
When you make a PR, please provide a description telling us why you think the change is needed: the problem with the current code and (unless trivial) how the change fixes the problem.

@lochjin
Copy link
Contributor Author

lochjin commented Jun 16, 2023

Hi,
When you make a PR, please provide a description telling us why you think the change is needed: the problem with the current code and (unless trivial) how the change fixes the problem.

#27481 (comment)

@fjl
Copy link
Contributor

fjl commented Jun 16, 2023

Please rebase this change, the txpool was moved into core/txpool/legacypool/. Otherwise LGTM!

@lochjin
Copy link
Contributor Author

lochjin commented Jun 16, 2023

Please rebase this change, the txpool was moved into core/txpool/legacypool/. Otherwise LGTM!

OK 86ff690

@fjl fjl changed the title txpool:reheap the priced list if london fork not enabled core/txpool/legacypool: reheap the priced list if london fork not enabled Jun 18, 2023
@fjl fjl merged commit 46ec972 into ethereum:master Jun 18, 2023
1 of 2 checks passed
@fjl fjl added this to the 1.12.1 milestone Jun 18, 2023
@dindinw dindinw mentioned this pull request Jun 19, 2023
37 tasks
spencer-tb pushed a commit to spencer-tb/go-ethereum that referenced this pull request Jul 7, 2023
…ethereum#27481)

This change ensures Reheap will be called even before the London fork activates.
Since Reheap would otherwise only be called through `SetBaseFee` after London,
the list would just keep growing if the fork was not enabled or not reached yet.
MoonShiesty pushed a commit to MoonShiesty/go-ethereum that referenced this pull request Aug 30, 2023
…ethereum#27481)

This change ensures Reheap will be called even before the London fork activates.
Since Reheap would otherwise only be called through `SetBaseFee` after London,
the list would just keep growing if the fork was not enabled or not reached yet.
devopsbo3 pushed a commit to HorizenOfficial/go-ethereum that referenced this pull request Nov 10, 2023
…ethereum#27481)

This change ensures Reheap will be called even before the London fork activates.
Since Reheap would otherwise only be called through `SetBaseFee` after London,
the list would just keep growing if the fork was not enabled or not reached yet.
devopsbo3 added a commit to HorizenOfficial/go-ethereum that referenced this pull request Nov 10, 2023
devopsbo3 added a commit to HorizenOfficial/go-ethereum that referenced this pull request Nov 10, 2023
devopsbo3 added a commit to HorizenOfficial/go-ethereum that referenced this pull request Nov 10, 2023
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.

None yet

3 participants