Use stage0 laconicd build for exporting stage0 state
This commit is contained in:
parent
81a3141db4
commit
3dda82d172
@ -22,11 +22,12 @@ mkdir -p $STAGE1_GENESIS_DIR
|
||||
# --------
|
||||
|
||||
# Export onboarding module state from stage0 laconicd chain
|
||||
# Use cerc/laconicd-stage0:local image for stage0 laconicd build
|
||||
|
||||
onboarding_state_file="$STAGE1_GENESIS_DIR/stage0-onboarding-state.json"
|
||||
docker run -it \
|
||||
-v ${STAGE0_DEPLOYMENT_DIR}/data/laconicd-data:/root/stage0-deployment/.laconicd \
|
||||
cerc/laconicd:local bash -c "laconicd export --home /root/stage0-deployment/.laconicd" \
|
||||
cerc/laconicd-stage0:local bash -c "laconicd export --home /root/stage0-deployment/.laconicd" \
|
||||
| jq .app_state.onboarding > "$onboarding_state_file"
|
||||
|
||||
stage0_participants=$(cat "$onboarding_state_file" | jq .participants)
|
||||
|
Loading…
Reference in New Issue
Block a user