Skip to content

Commit

Permalink
modify minimum-gas-prices for autodeployer
Browse files Browse the repository at this point in the history
  • Loading branch information
lesterli committed Dec 14, 2023
1 parent ae3c595 commit 60567bd
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ FROM ubuntu:22.04

RUN apt-get update \
&& apt-get upgrade -y \
&& apt-get install -y curl
&& apt-get install -y curl jq

WORKDIR /root

Expand Down
4 changes: 4 additions & 0 deletions scripts/init_and_start.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ CHAINID=$3
PEERS=$4
GENESIS_FILE=$5
DATA_DIR=/data
IBC_DENOM=`jq '.app_state.crisis.constant_fee.denom' $GENESIS_FILE`

if [ ! -f "$DATA_DIR/config/config.toml" ]; then
# Initialize node's configuration files.
Expand All @@ -16,6 +17,9 @@ if [ ! -f "$DATA_DIR/config/config.toml" ]; then
# Modify the persistent_peers field of config.toml
sed -i.bak "s/persistent_peers = \"\"/persistent_peers = \"${PEERS}\"/" $DATA_DIR/config/config.toml

# Modify the minimum-gas-price field of app.toml
sed -i.bak "s#minimum-gas-prices = \"0aotto\"#minimum-gas-prices = \"20000000000${IBC_TOKEN_DENOM}\"#" $DATA_DIR/config/app.toml

# Download genesis file
curl -L -o $DATA_DIR/config/genesis.json $GENESIS_FILE

Expand Down

0 comments on commit 60567bd

Please sign in to comment.