We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 22d4b42 + 7e631c0 commit 6241f2aCopy full SHA for 6241f2a
fuzz/src/full_stack.rs
@@ -299,6 +299,14 @@ impl<'a> MoneyLossDetector<'a> {
299
}
300
301
fn connect_block(&mut self, all_txn: &[Transaction]) {
302
+ if self.blocks_connected > 50_000 {
303
+ // Connecting blocks is relatively slow, and some commands can connect many blocks.
304
+ // This can inflate the total runtime substantially, leading to spurious timeouts.
305
+ // Instead, because block connection rate is expected to be limited by PoW, simply
306
+ // start ignoring blocks after the first 50k.
307
+ return;
308
+ }
309
+
310
let mut txdata = Vec::with_capacity(all_txn.len());
311
for (idx, tx) in all_txn.iter().enumerate() {
312
let txid = tx.compute_txid();
0 commit comments