Skip to content

Commit

Permalink
fix: add genesis subcommand and gas prices for local docker (#761)
Browse files Browse the repository at this point in the history
* changes in docker container shell script by adding genesis subcommand in staking an amount and collecting gentxs

* Change gas cost to ujunox for local docker

---------

Co-authored-by: Reece Williams <[email protected]>
  • Loading branch information
shyamvyas5 and Reecepbcups authored Jul 19, 2023
1 parent 3c2e8c8 commit 054796f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion docker/run_junod.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ if test -n "$1"; then
fi

mkdir -p /root/log
junod start --rpc.laddr tcp://0.0.0.0:26657 --trace
junod start --rpc.laddr tcp://0.0.0.0:26657 --minimum-gas-prices 0.0001ujunox--trace
6 changes: 3 additions & 3 deletions docker/setup_junod.sh
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,8 @@ if ! junod keys show validator $KEYRING; then

# submit a genesis validator tx
## Workraround for https://github.com/cosmos/cosmos-sdk/issues/8251
(echo "$PASSWORD"; echo "$PASSWORD"; echo "$PASSWORD") | junod gentx validator "250000000$STAKE" --chain-id="$CHAIN_ID" --amount="250000000$STAKE" $KEYRING
(echo "$PASSWORD"; echo "$PASSWORD"; echo "$PASSWORD") | junod genesis gentx validator "250000000$STAKE" --chain-id="$CHAIN_ID" --amount="250000000$STAKE" $KEYRING
## should be:
# (echo "$PASSWORD"; echo "$PASSWORD"; echo "$PASSWORD") | junod gentx validator "250000000$STAKE" --chain-id="$CHAIN_ID"
junod collect-gentxs
# (echo "$PASSWORD"; echo "$PASSWORD"; echo "$PASSWORD") | junod genesis gentx validator "250000000$STAKE" --chain-id="$CHAIN_ID"
junod genesis collect-gentxs
fi

0 comments on commit 054796f

Please sign in to comment.