mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-07-28 17:02:50 +02:00
test: stop node before calling assert_start_raises_init_error
...in feature_coinstatsindex and feature_pruning. Also add an assert to assert_start_raises_init_error that the node is not already running.
This commit is contained in:
@@ -231,11 +231,13 @@ class CoinStatsIndexTest(BitcoinTestFramework):
|
||||
|
||||
self.log.info("Test that -reindex-chainstate is disallowed with coinstatsindex")
|
||||
|
||||
self.stop_node(1)
|
||||
self.nodes[1].assert_start_raises_init_error(
|
||||
expected_msg='Error: -reindex-chainstate option is not compatible with -coinstatsindex. '
|
||||
'Please temporarily disable coinstatsindex while using -reindex-chainstate, or replace -reindex-chainstate with -reindex to fully rebuild all indexes.',
|
||||
extra_args=['-coinstatsindex', '-reindex-chainstate'],
|
||||
)
|
||||
self.restart_node(1, extra_args=["-coinstatsindex"])
|
||||
|
||||
def _test_use_index_option(self):
|
||||
self.log.info("Test use_index option for nodes running the index")
|
||||
|
Reference in New Issue
Block a user