Skip to content

Commit

Permalink
BVN port fix script
Browse files Browse the repository at this point in the history
  • Loading branch information
firelizzard18 committed Oct 2, 2023
1 parent 34e8c11 commit 1ee26e7
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions scripts/ops/fix/fix-bvn-ports.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
#!/bin/bash

node="$1"
if [ -z "$node" ]; then
node=/node
fi
if ! [ -d "$node" ]; then
>&2 echo "Error: $node is not a directory"
>&2 echo "Usage: $0 [node dir]"
exit 1
fi

# Replace 1679x with 1669x
sed -i -re 's/1679([1-5])/1669\1/g' "$node/bvnn/config/accumulate.toml"
sed -i -re 's/1679([1-5])/1669\1/g' "$node/bvnn/config/tendermint.toml"

0 comments on commit 1ee26e7

Please sign in to comment.