fixturenet-laconicd-stack/stack-orchestrator/stacks/fixturenet-laconicd/scripts/export-state.sh

20 lines
350 B
Bash
Executable File

#!/bin/bash
# Exit on error
set -e
set -u
# Run in docker container with mounted stage1 data
NODE_HOME="$HOME/.laconicd"
stage1_state="$NODE_HOME/stage1-state.json"
# Export state
laconicd export | jq > $stage1_state
# Remove data but keep keys
laconicd cometbft unsafe-reset-all
rm -r $NODE_HOME/config/gentx
rm $NODE_HOME/config/genesis.json