Skip to content

Commit

Permalink
Merge pull request #1 from Hydra-Chain/fix-devnet-script
Browse files Browse the repository at this point in the history
Fix devnet docker compose setup script
  • Loading branch information
R-Santev authored Feb 20, 2024
2 parents 8868881 + 8a7354e commit ecde667
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion h_devnet/devnet_cluster/polygon-edge.sh
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,10 @@ case "$1" in
# Loop through each data directory and delete specific subdirectories
for i in 1 2 3 4 5; do
echo "Cleaning up /data/data-$i directory..."
rm -rf /data/data-$i/blockchain /data/data-$i/consensus/polybft /data/data-$i/trie
rm -rf /data/data-$i/blockchain /data/data-$i/consensus/polybft /data/data-$i/consensus/validator.sig /data/data-$i/trie

# This will generate new signatures without modifying the keys that are already present
"$POLYGON_EDGE_BIN" polybft-secrets init --insecure --chain-id 8844 --num 5 --data-dir /data/data- --json
done
else
echo "Generating PolyBFT secrets..."
Expand Down

0 comments on commit ecde667

Please sign in to comment.