Compress exported testnet state

This commit is contained in:
IshaVenikar 2025-06-03 19:01:10 +05:30
parent b87609436a
commit d197dd51e1

View File

@ -19,10 +19,10 @@ OUTPUT_DIR=${TESTNET_DEPLOYMENT_DIR}/export
mkdir -p $OUTPUT_DIR
# Export state from testnet chain
testnet_state_file="$OUTPUT_DIR/testnet-state.json"
testnet_state_file="$OUTPUT_DIR/testnet-state.json.gz"
docker run -it \
-v ${TESTNET_DEPLOYMENT_DIR}/data/laconicd-data:/root/testnet-deployment/.laconicd \
cerc/laconicd:local bash -c "laconicd export --home /root/testnet-deployment/.laconicd" \
| jq > "$testnet_state_file"
| jq | gzip > "$testnet_state_file"
echo "Exported state from testnet to $testnet_state_file"