Skip to content

Commit 2935a9d

Browse files
committed
fix test_filter_txs_by_type for NextNonceWithHighestFeeRate
1 parent b07077a commit 2935a9d

File tree

1 file changed

+7
-0
lines changed
  • stackslib/src/core/tests

1 file changed

+7
-0
lines changed

stackslib/src/core/tests/mod.rs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2731,6 +2731,13 @@ fn test_filter_txs_by_type() {
27312731
},
27322732
);
27332733

2734+
// NextNonceWithHighestFeeRate tracks processed txs in the `considered_txs` table.
2735+
// We need to clear this tracking so that the following call can re-consider
2736+
// the previously processed transactions.
2737+
mempool
2738+
.reset_mempool_caches()
2739+
.expect("Should be able to reset nonces");
2740+
27342741
mempool_settings.txs_to_consider = [MemPoolWalkTxTypes::TokenTransfer].into_iter().collect();
27352742

27362743
chainstate.with_read_only_clarity_tx(

0 commit comments

Comments
 (0)