aboutsummaryrefslogtreecommitdiff
path: root/test/functional/p2p_node_network_limited.py
diff options
context:
space:
mode:
authorMarcoFalke <falke.marco@gmail.com>2021-11-10 11:13:30 +0100
committerMarcoFalke <falke.marco@gmail.com>2021-11-10 11:09:55 +0100
commitfad13991aea6463ecf07dd907de1c1b23837d7e7 (patch)
treea2cd897f419a096b5c016d279fde7f102d4c6270 /test/functional/p2p_node_network_limited.py
parentfaeff577093c4de9eec9491486a2c3766d46dae6 (diff)
test: Properly set sync_fun in NodeNetworkLimitedTest
Diffstat (limited to 'test/functional/p2p_node_network_limited.py')
-rwxr-xr-xtest/functional/p2p_node_network_limited.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/test/functional/p2p_node_network_limited.py b/test/functional/p2p_node_network_limited.py
index d70870fa56..e6c320dc0b 100755
--- a/test/functional/p2p_node_network_limited.py
+++ b/test/functional/p2p_node_network_limited.py
@@ -59,8 +59,7 @@ class NodeNetworkLimitedTest(BitcoinTestFramework):
self.log.info("Mine enough blocks to reach the NODE_NETWORK_LIMITED range.")
self.connect_nodes(0, 1)
- blocks = self.generate(self.nodes[1], 292, sync_fun=self.no_op)
- self.sync_blocks([self.nodes[0], self.nodes[1]])
+ blocks = self.generate(self.nodes[1], 292, sync_fun=lambda: self.sync_blocks([self.nodes[0], self.nodes[1]]))
self.log.info("Make sure we can max retrieve block at tip-288.")
node.send_getdata_for_block(blocks[1]) # last block in valid range