Skip to content

fix(sequencer): update mempool benchmarks (ENG-733)#1385

Merged
Fraser999 merged 1 commit intomainfrom
fraser/fix-mempool-benchmarks
Aug 27, 2024
Merged

fix(sequencer): update mempool benchmarks (ENG-733)#1385
Fraser999 merged 1 commit intomainfrom
fraser/fix-mempool-benchmarks

Conversation

@Fraser999
Copy link
Copy Markdown
Contributor

Summary

Recent changes to the mempool broke the benchmarks. This PR fixes that.

Background

Specifically, the benchmarks tests were failing in two ways: the limit on number of parked txs per account was causing the addition of txs to fail, and the pending nonce was returning None in the tests.

This was all due to the current account nonce being provided as 0, but the txs started from nonce 1, meaning they weren't eligible for adding to the pending queue.

Changes

  • Ensure the txs all end up in the pending queue by having the txs start from nonce 0.

Testing

Ran the benchmark and observed the full suite passing.

Related Issues

Closes #1384.

@Fraser999 Fraser999 requested a review from a team as a code owner August 21, 2024 13:08
@Fraser999 Fraser999 requested a review from SuperFluffy August 21, 2024 13:08
@github-actions github-actions bot added the sequencer pertaining to the astria-sequencer crate label Aug 21, 2024
@Fraser999 Fraser999 added this pull request to the merge queue Aug 27, 2024
Merged via the queue into main with commit 3a3ace7 Aug 27, 2024
@Fraser999 Fraser999 deleted the fraser/fix-mempool-benchmarks branch August 27, 2024 14:26
steezeburger added a commit that referenced this pull request Aug 28, 2024
* main:
  release(cli): new release for dusk-10 (#1418)
  celestia-node chart as subchart of evm-stack (#1403)
  chore(composer): Add instrumentation (#1326)
  fix(sequencer): update mempool benchmarks (ENG-733) (#1385)
steezeburger added a commit that referenced this pull request Aug 28, 2024
* feature/ibc-e2e-smoke-test:
  release(cli): new release for dusk-10 (#1418)
  celestia-node chart as subchart of evm-stack (#1403)
  chore(composer): Add instrumentation (#1326)
  fix(sequencer): update mempool benchmarks (ENG-733) (#1385)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

sequencer pertaining to the astria-sequencer crate

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Fix mempool benchmarks

2 participants