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

Evict Transactions by sender from tail first #4327

Merged

Conversation

garyschulte
Copy link
Contributor

@garyschulte garyschulte commented Aug 30, 2022

PR description

Ensure when besu evicts transactions by sender, that future nonces are evicted first

Fixed Issue(s)

related to protocol-misc 629

Documentation

  • I thought about documentation and added the doc-change-required label to this PR if
    updates are required.

Changelog

@garyschulte garyschulte changed the title Feature/tx evict only from tail Evict Transactions by sender from tail first Aug 30, 2022
@garyschulte garyschulte force-pushed the feature/tx-evict-only-from-tail branch 6 times, most recently from d73f44a to 5b885bf Compare August 31, 2022 04:27
@garyschulte garyschulte requested review from matkt and shemnon August 31, 2022 14:27
@garyschulte garyschulte force-pushed the feature/tx-evict-only-from-tail branch from 5b885bf to dcc239e Compare August 31, 2022 21:56
garyschulte added a commit to garyschulte/besu that referenced this pull request Sep 1, 2022
Signed-off-by: garyschulte <garyschulte@gmail.com>
Copy link
Contributor

@jflo jflo left a comment

Choose a reason for hiding this comment

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

looks good, i find this more intuitive too.

…t price

Signed-off-by: garyschulte <garyschulte@gmail.com>
…n sequence id (to better prevent collisions for same gas price and sequence id)

Signed-off-by: garyschulte <garyschulte@gmail.com>
  use default systemclock instead of fixed
  change multi-type txpool tests to use different senders to assert the desired eviction behavior

Signed-off-by: garyschulte <garyschulte@gmail.com>
@garyschulte garyschulte force-pushed the feature/tx-evict-only-from-tail branch from dcc239e to aa3f2e5 Compare September 1, 2022 20:16
@garyschulte garyschulte enabled auto-merge (squash) September 1, 2022 20:16
@garyschulte garyschulte merged commit f3fd946 into hyperledger:main Sep 1, 2022
garyschulte added a commit to garyschulte/besu that referenced this pull request Sep 1, 2022
Signed-off-by: garyschulte <garyschulte@gmail.com>
@garyschulte garyschulte deleted the feature/tx-evict-only-from-tail branch September 2, 2022 16:51
garyschulte added a commit to garyschulte/besu that referenced this pull request Sep 7, 2022
* evict transactions from tail of senderAndNonce rather than just lowest price
* make pendingTransactions secondary sort based on timestamp rather than sequence id (to better prevent collisions for same gas price and sequence id)

Signed-off-by: garyschulte <garyschulte@gmail.com>
garyschulte added a commit to garyschulte/besu that referenced this pull request Sep 7, 2022
* evict transactions from tail of senderAndNonce rather than just lowest price
* make pendingTransactions secondary sort based on timestamp rather than sequence id (to better prevent collisions for same gas price and sequence id)

Signed-off-by: garyschulte <garyschulte@gmail.com>
garyschulte added a commit to garyschulte/besu that referenced this pull request Sep 7, 2022
* evict transactions from tail of senderAndNonce rather than just lowest price
* make pendingTransactions secondary sort based on timestamp rather than sequence id (to better prevent collisions for same gas price and sequence id)

Signed-off-by: garyschulte <garyschulte@gmail.com>
eum602 pushed a commit to lacchain/besu that referenced this pull request Nov 3, 2023
* evict transactions from tail of senderAndNonce rather than just lowest price
* make pendingTransactions secondary sort based on timestamp rather than sequence id (to better prevent collisions for same gas price and sequence id)

Signed-off-by: garyschulte <garyschulte@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants