Skip to content

Commit

Permalink
fix single node script (#211)
Browse files Browse the repository at this point in the history
* fix single node script

* revert changes made to script that modify the config
  • Loading branch information
evan-forbes authored Feb 13, 2022
1 parent ad9e077 commit b56af3b
Showing 1 changed file with 3 additions and 15 deletions.
18 changes: 3 additions & 15 deletions contrib/single-node.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,27 +2,15 @@

set -o errexit -o nounset

CHAINID=$1
GENACCT=$2

if [ -z "$1" ]; then
echo "Need to input chain id..."
exit 1
fi

if [ -z "$2" ]; then
echo "Need to input genesis account address..."
exit 1
fi
CHAINID="test"

# Build genesis file incl account for passed address
coins="10000000000celes,100000000000samoleans"
coins="1000000000000000uceles"
celestia-appd init $CHAINID --chain-id $CHAINID
celestia-appd keys add validator --keyring-backend="test"
# this won't work because the some proto types are decalared twice and the logs output to stdout (dependency hell involving iavl)
celestia-appd add-genesis-account $(celestia-appd keys show validator -a --keyring-backend="test") $coins
celestia-appd add-genesis-account $GENACCT $coins
celestia-appd gentx validator 5000000000celes --keyring-backend="test" --chain-id $CHAINID
celestia-appd gentx validator 5000000000uceles --keyring-backend="test" --chain-id $CHAINID
celestia-appd collect-gentxs

# Set proper defaults and change ports
Expand Down

0 comments on commit b56af3b

Please sign in to comment.