mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-03-04 13:55:23 -05:00
test: Properly set sync_fun in NodeNetworkLimitedTest
This commit is contained in:
parent
faeff57709
commit
fad13991ae
1 changed files with 1 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue