Skip to content

Commit fa24247

Browse files
author
MarcoFalke
committed
test: Fix NODE_NETWORK_LIMITED_MIN_BLOCKS disconnection
1 parent fab6995 commit fa24247

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

test/functional/feature_blockfilterindex_prune.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,10 @@ def run_test(self):
1919
# test basic pruning compatibility & filter access of pruned blocks
2020
self.log.info("check if we can access a blockfilter when pruning is enabled but no blocks are actually pruned")
2121
assert len(self.nodes[1].getblockfilter(self.nodes[1].getbestblockhash())['filter']) > 0
22-
self.nodes[1].generate(500)
22+
# Mine two batches of blocks to avoid hitting NODE_NETWORK_LIMITED_MIN_BLOCKS disconnection
23+
self.nodes[1].generate(250)
24+
self.sync_all()
25+
self.nodes[1].generate(250)
2326
self.sync_all()
2427
self.log.info("prune some blocks")
2528
pruneheight = self.nodes[1].pruneblockchain(400)

0 commit comments

Comments
 (0)