Skip to content

Commit a999518

Browse files
committed
chore: move mempool tests into their own file and API sync
1 parent 22ecca9 commit a999518

File tree

5 files changed

+910
-0
lines changed

5 files changed

+910
-0
lines changed

stackslib/src/net/api/tests/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -600,6 +600,7 @@ impl<'a> TestRPC<'a> {
600600
peer_1.chainstate(),
601601
&consensus_hash,
602602
&stacks_block.block_hash(),
603+
true,
603604
txid.clone(),
604605
tx_bytes,
605606
tx_fee,

stackslib/src/net/api/tests/postmempoolquery.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -174,6 +174,7 @@ fn test_stream_mempool_txs() {
174174
&mut chainstate,
175175
&ConsensusHash([0x1 + (block_height as u8); 20]),
176176
&BlockHeaderHash([0x2 + (block_height as u8); 32]),
177+
false,
177178
txid.clone(),
178179
tx_bytes,
179180
tx_fee,

stackslib/src/net/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,7 @@ pub mod http;
124124
/// Links http crate to Stacks
125125
pub mod httpcore;
126126
pub mod inv;
127+
pub mod mempool;
127128
pub mod neighbors;
128129
pub mod p2p;
129130
/// Implements wrapper around `mio` crate, which itself is a wrapper around Linux's `epoll(2)` syscall.

0 commit comments

Comments
 (0)