Skip to content

mempool: test FIFO ordering when disseminating txs#1169

Closed
hvanz wants to merge 5 commits intomainfrom
hvanz/mempool-improve-tests
Closed

mempool: test FIFO ordering when disseminating txs#1169
hvanz wants to merge 5 commits intomainfrom
hvanz/mempool-improve-tests

Conversation

@hvanz
Copy link
Collaborator

@hvanz hvanz commented Jul 26, 2023

This code was originally in #1043, and extracted from there.

The main addition here is the test TestReactorPeerLagging. Also checking that transactions are in order in TestReactorTxSendersMultiNode.


PR checklist

  • Tests written/updated
  • Changelog entry added in .changelog (we use unclog to manage our changelog)
  • Updated relevant documentation (docs/ or spec/) and code comments

@hvanz hvanz added the mempool label Jul 26, 2023
@hvanz hvanz changed the title mempool: Improve tests mempool: Improve reactor tests Jul 31, 2023
@thanethomson thanethomson added the wip Work in progress label Jul 31, 2023
@lasarojc lasarojc added the backlog A prioritized task in the team's backlog label Aug 1, 2023
@hvanz
Copy link
Collaborator Author

hvanz commented Aug 2, 2023

The tests in this PR fail intermittently because they test for FIFO ordering, that is, they require that transactions arrive to peers in the order in which they were sent. FIFOness is really difficult to enforce, so we should consider whether it must be a requirement on the mempool and an assumption by the application.

@hvanz hvanz changed the title mempool: Improve reactor tests mempool: test FIFO ordering when disseminating txs Aug 2, 2023
@lasarojc
Copy link
Contributor

lasarojc commented Aug 9, 2023

FIFO is not really provided and we should check the documentation and code where this assumption might be made to remove/correct it.

@lasarojc
Copy link
Contributor

The test added in #1628 are more specific in demonstrating that FIFO is not provided.
I am closing this PR in favor or #1628. Please reopen if you think this is a mistake.

@lasarojc lasarojc closed this Nov 23, 2023
@hvanz hvanz deleted the hvanz/mempool-improve-tests branch July 11, 2024 15:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backlog A prioritized task in the team's backlog mempool wip Work in progress

Projects

No open projects
Status: Done

Development

Successfully merging this pull request may close these issues.

3 participants