aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorMarcoFalke <falke.marco@gmail.com>2021-02-18 21:00:28 +0100
committerMarcoFalke <falke.marco@gmail.com>2021-02-18 20:45:05 +0100
commitfa24247d0ff437a86b105692d342beb5f9f7a015 (patch)
tree45548bcfabf317eed0c8a50303ef24306305811b /test
parentfab6995629e391d03d28ea81b89c94d9e92172f6 (diff)
test: Fix NODE_NETWORK_LIMITED_MIN_BLOCKS disconnection
Diffstat (limited to 'test')
-rwxr-xr-xtest/functional/feature_blockfilterindex_prune.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/test/functional/feature_blockfilterindex_prune.py b/test/functional/feature_blockfilterindex_prune.py
index 369250cfd9..455073ef9c 100755
--- a/test/functional/feature_blockfilterindex_prune.py
+++ b/test/functional/feature_blockfilterindex_prune.py
@@ -19,7 +19,10 @@ class FeatureBlockfilterindexPruneTest(BitcoinTestFramework):
# test basic pruning compatibility & filter access of pruned blocks
self.log.info("check if we can access a blockfilter when pruning is enabled but no blocks are actually pruned")
assert len(self.nodes[1].getblockfilter(self.nodes[1].getbestblockhash())['filter']) > 0
- self.nodes[1].generate(500)
+ # Mine two batches of blocks to avoid hitting NODE_NETWORK_LIMITED_MIN_BLOCKS disconnection
+ self.nodes[1].generate(250)
+ self.sync_all()
+ self.nodes[1].generate(250)
self.sync_all()
self.log.info("prune some blocks")
pruneheight = self.nodes[1].pruneblockchain(400)