Skip to content
Snippets Groups Projects
Commit 832f4735 authored by Michał Kudela's avatar Michał Kudela
Browse files

Change --force-replay to --replay-blockchain argument in Node class

parent 2435b7d9
No related branches found
No related tags found
1 merge request!251Change type of `checkpoint` member in NodeConfig class & repair get_block_ids method
Pipeline #118537 passed
......@@ -452,12 +452,12 @@ class Node(BaseNode, ScopedObject):
else "split",
)
additional_arguments.append("--force-replay")
additional_arguments.append("--replay-blockchain")
block_log_directory = self.directory.joinpath("blockchain")
if block_log_directory.exists():
if block_log_directory.exists() and "--force-replay" in additional_arguments:
shutil.rmtree(block_log_directory)
block_log_directory.mkdir()
block_log_directory.mkdir(exist_ok=True)
replay_source.copy_to(block_log_directory, artifacts="optional")
def __log_run_summary(self) -> None:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment