mirror of
https://github.com/dashpay/dash.git
synced 2024-12-26 12:32:48 +01:00
Fix feature_txindex.py
This commit is contained in:
parent
3cc35ea470
commit
aafa64d021
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user