Generate stage1 genesis file from CSV with subscribed participants #13
@ -22,11 +22,12 @@ mkdir -p $STAGE1_GENESIS_DIR
|
|||||||
# --------
|
# --------
|
||||||
|
|
||||||
# Export onboarding module state from stage0 laconicd chain
|
# 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"
|
onboarding_state_file="$STAGE1_GENESIS_DIR/stage0-onboarding-state.json"
|
||||||
docker run -it \
|
docker run -it \
|
||||||
-v ${STAGE0_DEPLOYMENT_DIR}/data/laconicd-data:/root/stage0-deployment/.laconicd \
|
-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"
|
| jq .app_state.onboarding > "$onboarding_state_file"
|
||||||
|
|
||||||
stage0_participants=$(cat "$onboarding_state_file" | jq .participants)
|
stage0_participants=$(cat "$onboarding_state_file" | jq .participants)
|
||||||
|
Loading…
Reference in New Issue
Block a user