From 16b51145c4bae0e0abd9716109030f57b2449b01 Mon Sep 17 00:00:00 2001 From: noooblien Date: Wed, 10 Apr 2024 14:19:07 +0530 Subject: [PATCH] Update home directory references in scripts and .gitignore The home directory referenced in number of script files has been changed from '.tmp' to '.evmstation'. As part of the update process, the old home directory reference '.tmp' has been replaced everywhere it appears with '.evmstation'. In addition, '.evmstation' has been added to .gitignore to prevent unnecessary tracking of this directory. --- .gitignore | 3 ++- scripts/local-setup.sh | 8 ++++---- scripts/local-start.sh | 4 ++-- 3 files changed, 8 insertions(+), 7 deletions(-) diff --git a/.gitignore b/.gitignore index 1ae3ed8..791ef47 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ /.tmp /build -/.idea \ No newline at end of file +/.idea +/.evmstation \ No newline at end of file diff --git a/scripts/local-setup.sh b/scripts/local-setup.sh index 1d0c708..4f187a0 100755 --- a/scripts/local-setup.sh +++ b/scripts/local-setup.sh @@ -16,7 +16,7 @@ KEYRING="test" KEYALGO="eth_secp256k1" LOGLEVEL="info" # Set dedicated home directory for the ./build/bin/evmstationd instance -HOMEDIR="./.tmp/polard" +HOMEDIR="./.evmstation" # to trace evm #TRACE="--trace" TRACE="" @@ -29,7 +29,7 @@ TMP_GENESIS=$HOMEDIR/config/tmp_genesis.json # Check if ../.tmp directory exists -if [ -d "../.tmp" ]; then +if [ -d "./.evmstation" ]; then read -p "The evm station directory already exists. Do you want to continue? (y/n) " -n 1 -r echo # Move to a new line if [[ $REPLY =~ ^[Nn]$ ]] @@ -41,7 +41,7 @@ if [ -d "../.tmp" ]; then fi -rm -rf ./.tmp +rm -rf ./.evmstation rm -rf ./build make clean make build @@ -78,7 +78,7 @@ set -e # Change the Default EVM Config -sed -i "/\[polaris\.polar\.chain\]/!b;n;c chain-id = \"$EVMCHAINID\"" ../.tmp/polard/config/app.toml +sed -i "/\[polaris\.polar\.chain\]/!b;n;c chain-id = \"$EVMCHAINID\"" ./.evmstation/config/app.toml ## Change exactly persistent peers in config.toml diff --git a/scripts/local-start.sh b/scripts/local-start.sh index 7f56461..d93ad4e 100644 --- a/scripts/local-start.sh +++ b/scripts/local-start.sh @@ -2,6 +2,6 @@ #Normal With CometBFT #./build/bin/evmstationd start --pruning=nothing "" --log_level info --api.enabled-unsafe-cors --api.enable --api.swagger --minimum-gas-prices=0.0001abera --home "./.tmp/evmstationd" - +HOMEDIR="./.evmstation" #First Implementation of StationBFT -../build/bin/evmstationd-v1 start --pruning=nothing "" --log_level info --api.enabled-unsafe-cors --api.enable --api.swagger --minimum-gas-prices=0.0001abera --home "../.tmp/polard" \ No newline at end of file +./build/bin/evmstationd start --pruning=nothing "" --log_level info --api.enabled-unsafe-cors --api.enable --api.swagger --minimum-gas-prices=0.0001abera --home "$HOMEDIR" \ No newline at end of file