Skip to content

Commit

Permalink
Merge pull request #2 from airchains-network/dev
Browse files Browse the repository at this point in the history
#2 Update home directory references in scripts and .gitignore
  • Loading branch information
Noooblien authored Apr 10, 2024
2 parents a348a3f + 16b5114 commit 4a771b6
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 7 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/.tmp
/build
/.idea
/.idea
/.evmstation
8 changes: 4 additions & 4 deletions scripts/local-setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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=""
Expand All @@ -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]$ ]]
Expand All @@ -41,7 +41,7 @@ if [ -d "../.tmp" ]; then
fi


rm -rf ./.tmp
rm -rf ./.evmstation
rm -rf ./build
make clean
make build
Expand Down Expand Up @@ -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


Expand Down
4 changes: 2 additions & 2 deletions scripts/local-start.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"
./build/bin/evmstationd start --pruning=nothing "" --log_level info --api.enabled-unsafe-cors --api.enable --api.swagger --minimum-gas-prices=0.0001abera --home "$HOMEDIR"

0 comments on commit 4a771b6

Please sign in to comment.