Skip to content

Commit 0d2cb0b

Browse files
committed
Log which mempool txids couldn't be fetched
Signed-off-by: Nadav Ivgi <nadav@shesek.info>
1 parent 027e38d commit 0d2cb0b

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/new_index/mempool.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -590,6 +590,12 @@ impl Mempool {
590590
"failed to fetch {} mempool txs, retrying...",
591591
new_txids.len() - fetched_count
592592
);
593+
let missing_txids: Vec<_> = new_txids
594+
.iter()
595+
.filter(|txid| !fetched_txs.contains_key(**txid))
596+
.take(10)
597+
.collect();
598+
warn!("missing mempool txids: {:?} (capped at 10)", missing_txids);
593599
} else {
594600
break;
595601
}

0 commit comments

Comments
 (0)