@@ -406,9 +406,15 @@ def join_network(self):
406
406
connect_nodes_bi (self .nodes , 1 , 2 )
407
407
self .sync_all ()
408
408
409
+ def sync_blocks (self , nodes = None , ** kwargs ):
410
+ sync_blocks (nodes or self .nodes , ** kwargs )
411
+
412
+ def sync_mempools (self , nodes = None , ** kwargs ):
413
+ sync_mempools (nodes or self .nodes , ** kwargs )
414
+
409
415
def sync_all (self , nodes = None , ** kwargs ):
410
- sync_blocks ( nodes or self .nodes , ** kwargs )
411
- sync_mempools ( nodes or self .nodes , ** kwargs )
416
+ self .sync_blocks ( nodes , ** kwargs )
417
+ self .sync_mempools ( nodes , ** kwargs )
412
418
413
419
# Private helper methods. These should not be accessed by the subclass test scripts.
414
420
@@ -494,7 +500,7 @@ def _initialize_chain(self):
494
500
# see the tip age check in IsInitialBlockDownload().
495
501
for i in range (8 ):
496
502
self .nodes [0 ].generatetoaddress (25 if i != 7 else 24 , self .nodes [i % 4 ].get_deterministic_priv_key ().address )
497
- sync_blocks ( self .nodes )
503
+ self .sync_blocks ( )
498
504
499
505
for n in self .nodes :
500
506
assert_equal (n .getblockchaininfo ()["blocks" ], 199 )
0 commit comments