diff --git a/test/functional/feature_txindex.py b/test/functional/feature_txindex.py index 419e68cb39..9bc22d94be 100755 --- a/test/functional/feature_txindex.py +++ b/test/functional/feature_txindex.py @@ -37,12 +37,12 @@ class TxIndexTest(BitcoinTestFramework): def run_test(self): self.log.info("Test that settings can't be changed without -reindex...") self.stop_node(1) - self.assert_start_raises_init_error(1, ["-txindex=0"], 'You need to rebuild the database using -reindex to change -txindex') + self.nodes[1].assert_start_raises_init_error(["-txindex=0"], "You need to rebuild the database using -reindex to change -txindex") self.start_node(1, ["-txindex=0", "-reindex"]) connect_nodes(self.nodes[0], 1) self.sync_all() self.stop_node(1) - self.assert_start_raises_init_error(1, ["-txindex"], 'You need to rebuild the database using -reindex to change -txindex') + self.nodes[1].assert_start_raises_init_error(["-txindex"], "You need to rebuild the database using -reindex to change -txindex") self.start_node(1, ["-txindex", "-reindex"]) connect_nodes(self.nodes[0], 1) self.sync_all()