8000 chore(sequencer): add app-level mempool tests for transaction inclusion by ethanoroshiba · Pull Request #2165 · astriaorg/astria · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

chore(sequencer): add app-level mempool tests for transaction inclusion #2165

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

Merged
merged 3 commits into from
May 21, 2025

Conversation

ethanoroshiba
Copy link
Contributor

Summary

Added app-level mempool tests to ensure that transactions are successfully removed from the mempool with an "included" status in regular execution.

Background

#2133 added support for TransactionStatuses, namely creating a new RemovalReason::IncludedInBlock. Tests were added to ensure that transaction IDs which were passed to the mempool in App::commit were successfully marked as "included", but no tests were added at a higher level to ensure that transactions are successfully conveyed between the different app methods and then to mempool. This led to a silent failure when the PR was first drafted, and the tests were deemed best suited for a followup.

These changes aim to address the three possible execution flows within the app to ensure executed transaction IDs are successfully passed to the mempool in commit no matter when they were executed:

  1. prepare_proposal (execution here) -> process_proposal -> finalize_block -> commit
  2. process_proposal (execution here) -> finalize_block -> commit
  3. finalize_block (execution here) -> commit

Changes/Testing

  • Added tests for the 3 flows listed above in app/tests/mempool.
  • Removed an eyre hook installation that was causing failure.

Changelogs

No updates required.

Related Issues

closes #2146

@ethanoroshiba ethanoroshiba added sequencer pertaining to the astria-sequencer crate testing mempool labels May 9, 2025
@ethanoroshiba ethanoroshiba changed the base branch from main to fraser/1958-check-tx May 9, 2025 19:12
@ethanoroshiba ethanoroshiba marked this pull request as ready for review May 9, 2025 20:17
Base automatically changed from fraser/1958-check-tx to main May 13, 2025 03:24
@ethanoroshiba ethanoroshiba force-pushed the eoroshiba/tx-included-app-test branch from 44a69ac to ff1d098 Compare May 13, 2025 13:22
< 8000 path d="M15 8a7.002 7.002 0 00-7-7" stroke="currentColor" stroke-width="2" stroke-linecap="round" vector-effect="non-scaling-stroke" />
@ethanoroshiba ethanoroshiba added this pull request to the merge queue May 21, 2025
Merged via the queue into main with commit 67d8084 May 21, 2025
51 checks passed
@ethanoroshiba ethanoroshiba deleted the eoroshiba/tx-included-app-test branch May 21, 2025 21:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
mempool sequencer pertaining to the astria-sequencer crate testing
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Sequencer: test that txs_included_in_block are correctly supplied to mempool in commit
2 participants
0