From 8e880e7a4d88949735bdb0c392cd7e95db04a539 Mon Sep 17 00:00:00 2001 From: Jude Nelson Date: Thu, 5 Oct 2023 13:47:33 -0400 Subject: [PATCH] fix: count the number of txs sent --- stackslib/src/net/api/postmempoolquery.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/stackslib/src/net/api/postmempoolquery.rs b/stackslib/src/net/api/postmempoolquery.rs index ab69c860f..4a18f7315 100644 --- a/stackslib/src/net/api/postmempoolquery.rs +++ b/stackslib/src/net/api/postmempoolquery.rs @@ -200,6 +200,7 @@ impl HttpChunkGenerator for StacksMemPoolStream { // next call will cork the stream self.finished = true; } + self.num_txs += next_txs.len() as u64; return Ok(chunk); } else if let Some(next_txid) = next_last_randomized_txid_opt { // no more txs to send