Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change config for public devnet #143

Merged
merged 2 commits into from
Jun 20, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 3 additions & 7 deletions setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,9 @@ cat $HOME_EVMOSD/config/genesis.json | jq '.app_state["gov"]["deposit_params"]["
cat $HOME_EVMOSD/config/genesis.json | jq '.app_state["evm"]["params"]["evm_denom"]="aevmos"' > $HOME_EVMOSD/config/tmp_genesis.json && mv $HOME_EVMOSD/config/tmp_genesis.json $HOME_EVMOSD/config/genesis.json
cat $HOME_EVMOSD/config/genesis.json | jq '.app_state["inflation"]["params"]["mint_denom"]="aevmos"' > $HOME_EVMOSD/config/tmp_genesis.json && mv $HOME_EVMOSD/config/tmp_genesis.json $HOME_EVMOSD/config/genesis.json

# Set gas and txn limit in genesis
cat $HOME_EVMOSD/config/genesis.json | jq '.consensus_params["block"]["max_gas"]="9999999999999999"' > $HOME_EVMOSD/config/tmp_genesis.json && mv $HOME_EVMOSD/config/tmp_genesis.json $HOME_EVMOSD/config/genesis.json
cat $HOME_EVMOSD/config/genesis.json | jq '.consensus_params["block"]["max_bytes"]="104857600"' > $HOME_EVMOSD/config/tmp_genesis.json && mv $HOME_EVMOSD/config/tmp_genesis.json $HOME_EVMOSD/config/genesis.json
# Set gas limit of 100000000 and txn limit of 4 MB in genesis
cat $HOME_EVMOSD/config/genesis.json | jq '.consensus_params["block"]["max_gas"]="100000000"' > $HOME_EVMOSD/config/tmp_genesis.json && mv $HOME_EVMOSD/config/tmp_genesis.json $HOME_EVMOSD/config/genesis.json
cat $HOME_EVMOSD/config/genesis.json | jq '.consensus_params["block"]["max_bytes"]="4194304"' > $HOME_EVMOSD/config/tmp_genesis.json && mv $HOME_EVMOSD/config/tmp_genesis.json $HOME_EVMOSD/config/genesis.json

# Set claims start time
node_address=$($EVMOSD keys list | grep "address: " | cut -c12-)
Expand All @@ -64,12 +64,8 @@ cat $HOME_EVMOSD/config/genesis.json | jq -r --arg amount_to_claim "$amount_to_c
# Increase transaction and HTTP server body sizes.
if [[ "$OSTYPE" == "darwin"* ]]; then
sed -i '' 's/create_empty_blocks = true/create_empty_blocks = false/g' $HOME_EVMOSD/config/config.toml
sed -i '' 's/max_body_bytes = 1000000/max_body_bytes = 1000000000/g' $HOME_EVMOSD/config/config.toml
sed -i '' 's/max_tx_bytes = 1048576/max_tx_bytes = 100000000/g' $HOME_EVMOSD/config/config.toml
else
sed -i 's/create_empty_blocks = true/create_empty_blocks = false/g' $HOME_EVMOSD/config/config.toml
sed -i 's/max_body_bytes = 1000000/max_body_bytes = 1000000000/g' $HOME_EVMOSD/config/config.toml
sed -i 's/max_tx_bytes = 1048576/max_tx_bytes = 100000000/g' $HOME_EVMOSD/config/config.toml
fi

if [[ $1 == "pending" ]]; then
Expand Down
8 changes: 3 additions & 5 deletions start.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@ COSMOS_BUILD_OPTIONS=nostrip make install

# Start the node (remove the --pruning=nothing flag if historical queries are not needed)
evmosd start --pruning=nothing $TRACE --log_level $LOGLEVEL \
--minimum-gas-prices=0.000000000000000001aevmos \
--json-rpc.gas-cap=9999999999999999 \
--gas-prices=0.00000000000000000000000000000000001aev0mos \
--gas-adjustment=0.000000000000000000000000001 \
--json-rpc.api eth,txpool,personal,net,debug,web3
--minimum-gas-prices=0.0001aevmos \
--json-rpc.gas-cap=50000000 \
--json-rpc.api eth,txpool,net,web3
Loading