11#!/usr/bin/env python3
2- # Copyright (c) 2018-2020 The Bitcoin Core developers
2+ # Copyright (c) 2018-2021 The Bitcoin Core developers
33# Distributed under the MIT software license, see the accompanying
44# file COPYING or http://www.opensource.org/licenses/mit-license.php.
55"""Backwards compatibility functional test
@@ -66,8 +66,6 @@ def setup_nodes(self):
6666 def run_test (self ):
6767 self .generatetoaddress (self .nodes [0 ], COINBASE_MATURITY + 1 , self .nodes [0 ].getnewaddress ())
6868
69- self .sync_blocks ()
70-
7169 # Sanity check the test framework:
7270 res = self .nodes [self .num_nodes - 1 ].getblockchaininfo ()
7371 assert_equal (res ['blocks' ], COINBASE_MATURITY + 1 )
@@ -93,15 +91,13 @@ def run_test(self):
9391 self .nodes [0 ].sendtoaddress (address , 10 )
9492 self .sync_mempools ()
9593 self .generate (self .nodes [0 ], 1 )
96- self .sync_blocks ()
9794 # Create a conflicting transaction using RBF
9895 return_address = self .nodes [0 ].getnewaddress ()
9996 tx1_id = self .nodes [1 ].sendtoaddress (return_address , 1 )
10097 tx2_id = self .nodes [1 ].bumpfee (tx1_id )["txid" ]
10198 # Confirm the transaction
10299 self .sync_mempools ()
103100 self .generate (self .nodes [0 ], 1 )
104- self .sync_blocks ()
105101 # Create another conflicting transaction using RBF
106102 tx3_id = self .nodes [1 ].sendtoaddress (return_address , 1 )
107103 tx4_id = self .nodes [1 ].bumpfee (tx3_id )["txid" ]
0 commit comments