diff --git a/test/functional/wallet_reindex.py b/test/functional/wallet_reindex.py index 71ab69e01bf..a4180897bf4 100755 --- a/test/functional/wallet_reindex.py +++ b/test/functional/wallet_reindex.py @@ -60,10 +60,8 @@ class WalletReindexTest(BitcoinTestFramework): assert_equal(wallet_watch_only.gettransaction(tx_id)['confirmations'], 50) assert_equal(wallet_watch_only.getbalances()['mine']['trusted'], 2) - # Reindex and wait for it to finish - with node.assert_debug_log(expected_msgs=["initload thread exit"]): - self.restart_node(0, extra_args=['-reindex=1', f'-mocktime={self.node_time}']) - node.syncwithvalidationinterfacequeue() + self.log.info("Reindex ...") # restart_node waits for it to finish + self.restart_node(0, extra_args=[ f'-mocktime={self.node_time}']) # Verify the transaction is still 'confirmed' after reindex wallet_watch_only = node.get_wallet_rpc('watch_only')