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

Fixed the aggressive eviction of txns in txn pool #1149

Conversation

kevjue
Copy link
Contributor

@kevjue kevjue commented Aug 28, 2020

Description

This is a cherry pick merge of this geth upstream PR: ethereum/go-ethereum#21300

During load tests, we saw that txns were being very aggressively evicted from the txpool (in some cases evicted within a second of being added to it). This caused the submitted txn to never be propagated throughout the network. Also, based on how our load tests are designed, this bug was preventing us to saturate the block chain.

After making this change, our load tests are able to saturate the block chain.

Testing

As part of the original upstream PR, there are unit tests that verify that txns are not evicted early. Also, our load tests is able to confirm that the txns are not evicted early (and hence can saturate the chain).

Backwards compatibility

Is backwards compatible

@kevjue kevjue merged commit 75b7e4b into master Aug 31, 2020
@kevjue kevjue deleted the kevjue/cherry_pick_geth_upstream_6793ffa12b7d4e86ee2f66afa1647dd3f0680ea0 branch August 31, 2020 21:04
@mcortesi mcortesi added this to the 1.0.2 milestone Sep 24, 2020
gastonponti added a commit that referenced this pull request Jun 18, 2021
Description
Merge from upstream, go-ethereum v1.9.18 a bugfix release

1.9.18 notes from our changes:

1059221/queue.go -> reserveHeaders:
changed to force as a pending for bodyTypes reserves (even if the block has an empty body, we have to retrieve it to update the random beacon

tx_pool_test.go
testTransactionQueueTimeLimiting kept the test as we had, because it was already cherrypicked and changed before (#1149)
subsequent commits left the same as the cherrypicked before (5413df1, 6793ffa)
Tested
Unit and integration tests pass
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