Skip to content
Snippets Groups Projects
Commit d380c0fb authored by Krzysztof Leśniak's avatar Krzysztof Leśniak
Browse files

Change stop-replay-at-block to stop-at-block

parent b089671e
No related branches found
No related tags found
2 merge requests!827Merge develop changes to master,!712Bump haf
......@@ -357,7 +357,7 @@ sync:
SHM_DIR: $DATA_CACHE_HIVEMIND_SHM_DIR
LOG_FILE: $CI_JOB_NAME.log
PGCTLTIMEOUT: 600 # give PostgreSQL more time to start if GitLab shut it down improperly after the replay job
command: ["--replay-blockchain", "--stop-replay-at-block=5000000"]
command: ["--replay-blockchain", "--stop-at-block=5000000"]
variables:
GIT_STRATEGY: none
RUNNER_HIVEMIND_SYNC_MAX_BLOCK: 5000024
......@@ -428,7 +428,7 @@ e2e_benchmark:
SHM_DIR: $DATA_CACHE_HIVEMIND_SHM_DIR
LOG_FILE: $CI_JOB_NAME.log
PGCTLTIMEOUT: 600 # give PostgreSQL more time to start if GitLab shut it down improperly after the sync job
command: ["--replay-blockchain", "--stop-replay-at-block=5000000"]
command: ["--replay-blockchain", "--stop-at-block=5000000"]
- name: $HIVEMIND_IMAGE
alias: hivemind-smoketest # cannot be a variable
entrypoint:
......
......@@ -146,7 +146,7 @@ cd /storage1/haf-data-dir/
For example, for testing purposes (assuming block_log file has been put into data-dir), you can spawn a 5M block replay to prepare a HAF database for further quick testing:
```bash
../hivemind/haf/scripts/run_hived_img.sh registry.gitlab.syncad.com/hive/haf/instance:instance-v1.27.3.0 --name=haf-mainnet-instance --data-dir="$(pwd)" --replay --stop-replay-at-block=5000000
../hivemind/haf/scripts/run_hived_img.sh registry.gitlab.syncad.com/hive/haf/instance:instance-v1.27.3.0 --name=haf-mainnet-instance --data-dir="$(pwd)" --replay --stop-at-block=5000000
```
By examining hived.log file or using docker logs haf-mainnet-instance, you can examine state of the started instance. Once replay will be finished, you can continue and start the Hivemind sync process.
......
......@@ -16,4 +16,4 @@ docker run -d \
-v $MYDIR/entrypoint.sh:$WORKDIR/entrypoint.sh \
--entrypoint $WORKDIR/entrypoint.sh \
$IMAGE \
--replay-blockchain --stop-replay-at-block 5000000
--replay-blockchain --stop-at-block 5000000
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment