mirror of
https://github.com/dashpay/dash.git
synced 2024-12-24 19:42:46 +01:00
merge bitcoin#24117: make indices robust against init aborts
continuation of 123cf8d2
(dash#5501)
This commit is contained in:
parent
6645cde0e7
commit
51bc29ee59
@ -64,6 +64,8 @@ class InitStressTest(BitcoinTestFramework):
|
||||
'addcon thread start',
|
||||
'loadblk thread start',
|
||||
'txindex thread start',
|
||||
'block filter index thread start',
|
||||
'coinstatsindex thread start',
|
||||
'msghand thread start',
|
||||
'net thread start',
|
||||
'addcon thread start',
|
||||
@ -74,7 +76,7 @@ class InitStressTest(BitcoinTestFramework):
|
||||
for terminate_line in lines_to_terminate_after:
|
||||
self.log.info(f"Starting node and will exit after line '{terminate_line}'")
|
||||
with node.wait_for_debug_log([terminate_line], ignore_case=True):
|
||||
node.start(extra_args=['-txindex=1'])
|
||||
node.start(extra_args=['-txindex=1', '-blockfilterindex=1', '-coinstatsindex=1'])
|
||||
self.log.debug("Terminating node after terminate line was found")
|
||||
sigterm_node()
|
||||
|
||||
@ -109,7 +111,7 @@ class InitStressTest(BitcoinTestFramework):
|
||||
# investigate doing this later.
|
||||
|
||||
node.assert_start_raises_init_error(
|
||||
extra_args=['-txindex=1'],
|
||||
extra_args=['-txindex=1', '-blockfilterindex=1', '-coinstatsindex=1'],
|
||||
expected_msg=err_fragment,
|
||||
match=ErrorMatch.PARTIAL_REGEX,
|
||||
)
|
||||
|
Loading…
Reference in New Issue
Block a user