-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(mempool): convert unit to flow test (#1741)
This test is flow-specific, hence must be tested in a flow test. Specifically, this tests behavior when the mempool is in "validate mode" which isn't supported yet. Note: removed from the test the behavior where commit block decreased the known account nonce, which had two bugs: 1. commit_block from a different leader reduced the account nonce, this is a reorg and isnt unsupported yet, and when it is, it would use a dedicated API test. 2. it decreased the nonce back to 0, which doesn't make sense because at least one tx must have been accepted in a block --- also fixed a similar issue in a separate flow. Will add an assert in commit_block on minimum nonce being 1 in subseuqent commits. There will also be a subsequent commit that decreases the nonces in `test_commit_block_includes_proposed_txs_subset`, they are too high for readability. Also the test logic has some redundancies. Co-Authored-By: Gilad Chase <[email protected]>
- Loading branch information
1 parent
9b7cf84
commit 9d8f82b
Showing
2 changed files
with
31 additions
and
45 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters