From d197dd51e1b3f16fd64d0d4029f9b26848084456 Mon Sep 17 00:00:00 2001 From: IshaVenikar Date: Tue, 3 Jun 2025 19:01:10 +0530 Subject: [PATCH] Compress exported testnet state --- scripts/export-testnet-state.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/export-testnet-state.sh b/scripts/export-testnet-state.sh index a6b21d4..8a2a74e 100755 --- a/scripts/export-testnet-state.sh +++ b/scripts/export-testnet-state.sh @@ -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"