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