Use stage0 laconicd build for exporting stage0 state

This commit is contained in:
Prathamesh Musale 2024-08-16 13:02:00 +05:30
parent 81a3141db4
commit 3dda82d172

View File

@ -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)