Skip to content

Commit

Permalink
Merge pull request #38 from disperze/patch-juno-home
Browse files Browse the repository at this point in the history
Fix Juno home in docker setup script
  • Loading branch information
JakeHartnell authored Sep 2, 2021
2 parents 53ff550 + 8fce754 commit efa62b1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion docker/run_junod.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

if test -n "$1"; then
# need -R not -r to copy hidden files
cp -R "$1/.junod" /root
cp -R "$1/.juno" /root
fi

mkdir -p /root/log
Expand Down
4 changes: 2 additions & 2 deletions docker/setup_junod.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ MONIKER=${MONIKER:-node001}

junod init --chain-id "$CHAIN_ID" "$MONIKER"
# staking/governance token is hardcoded in config, change this
sed -i "s/\"stake\"/\"$STAKE\"/" "$HOME"/.junod/config/genesis.json
sed -i "s/\"stake\"/\"$STAKE\"/" "$HOME"/.juno/config/genesis.json
# this is essential for sub-1s block times (or header times go crazy)
sed -i 's/"time_iota_ms": "1000"/"time_iota_ms": "10"/' "$HOME"/.junod/config/genesis.json
sed -i 's/"time_iota_ms": "1000"/"time_iota_ms": "10"/' "$HOME"/.juno/config/genesis.json

if ! junod keys show validator; then
(echo "$PASSWORD"; echo "$PASSWORD") | junod keys add validator
Expand Down

0 comments on commit efa62b1

Please sign in to comment.