@@ -191,15 +191,13 @@ def run_test(self):
191191 p2sh_ids [n ][v ].append (send_to_witness (v , self .nodes [0 ], find_spendable_utxo (self .nodes [0 ], 50 ), self .pubkey [n ], True , Decimal ("49.999" )))
192192
193193 self .generate (self .nodes [0 ], 1 ) # block 163
194- self .sync_blocks ()
195194
196195 # Make sure all nodes recognize the transactions as theirs
197196 assert_equal (self .nodes [0 ].getbalance (), balance_presetup - 60 * 50 + 20 * Decimal ("49.999" ) + 50 )
198197 assert_equal (self .nodes [1 ].getbalance (), 20 * Decimal ("49.999" ))
199198 assert_equal (self .nodes [2 ].getbalance (), 20 * Decimal ("49.999" ))
200199
201200 self .generate (self .nodes [0 ], 260 ) # block 423
202- self .sync_blocks ()
203201
204202 self .log .info ("Verify witness txs are skipped for mining before the fork" )
205203 self .skip_mine (self .nodes [2 ], wit_ids [NODE_2 ][P2WPKH ][0 ], True ) # block 424
@@ -216,7 +214,6 @@ def run_test(self):
216214 self .log .info ("Verify previous witness txs skipped for mining can now be mined" )
217215 assert_equal (len (self .nodes [2 ].getrawmempool ()), 4 )
218216 blockhash = self .generate (self .nodes [2 ], 1 )[0 ] # block 432 (first block with new rules; 432 = 144 * 3)
219- self .sync_blocks ()
220217 assert_equal (len (self .nodes [2 ].getrawmempool ()), 0 )
221218 segwit_tx_list = self .nodes [2 ].getblock (blockhash )["tx" ]
222219 assert_equal (len (segwit_tx_list ), 5 )
@@ -630,7 +627,6 @@ def mine_and_test_listunspent(self, script_list, ismine):
630627 signresults = self .nodes [0 ].signrawtransactionwithwallet (tx .serialize_without_witness ().hex ())['hex' ]
631628 txid = self .nodes [0 ].sendrawtransaction (hexstring = signresults , maxfeerate = 0 )
632629 txs_mined [txid ] = self .generate (self .nodes [0 ], 1 )[0 ]
633- self .sync_blocks ()
634630 watchcount = 0
635631 spendcount = 0
636632 for i in self .nodes [0 ].listunspent ():
@@ -680,7 +676,6 @@ def create_and_mine_tx_from_txids(self, txids, success=True):
680676 signresults = self .nodes [0 ].signrawtransactionwithwallet (tx .serialize_without_witness ().hex ())['hex' ]
681677 self .nodes [0 ].sendrawtransaction (hexstring = signresults , maxfeerate = 0 )
682678 self .generate (self .nodes [0 ], 1 )
683- self .sync_blocks ()
684679
685680
686681if __name__ == '__main__' :
0 commit comments