Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
spoo-bar committed Jul 14, 2023
1 parent 27e8252 commit c5fd048
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions scripts/localnet.sh
Original file line number Diff line number Diff line change
Expand Up @@ -34,18 +34,18 @@ USER_MNEMONIC="any giant turtle pioneer frequent frown harvest ancient episode j
GENESIS_COINS=1000000000000000000000000000000000000stake

setup_chain () {
# Stop starsd if it is already running
# Stop archwayd if it is already running
if pgrep -x "$BINARY" >/dev/null; then
echo_error "Terminating $BINARY..."
killall starsd
killall archwayd
fi

# Remove previous data
echo_info "Removing previous chain data from $CHAIN_DIR/$CHAIN_ID..."
rm -rf $CHAIN_DIR/$CHAIN_ID


# Initialize starsd with "sg-localnet" chain id
# Initialize archwayd with "localnet-1" chain id
echo_info "Initializing $CHAIN_ID..."
if $BINARY --home $CHAIN_DIR/$CHAIN_ID init test --chain-id=$CHAIN_ID; then
echo_success "Successfully initialized $CHAIN_ID"
Expand Down

0 comments on commit c5fd048

Please sign in to comment.