Skip to content

Commit

Permalink
chores(local setup): change default block and envidence max bytes to …
Browse files Browse the repository at this point in the history
…500000 (#85)
  • Loading branch information
trinitys7 committed May 19, 2024
1 parent 1da2123 commit 9bfd030
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion scripts/init.sh
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,12 @@ set_denom() {

}

set_consensus_params() {
BLOCK_SIZE="500000"
jq --arg block_size "$BLOCK_SIZE" '.consensus_params["block"]["max_bytes"] = $block_size' "$GENESIS_FILE" >"$tmp" && mv "$tmp" "$GENESIS_FILE"
jq --arg block_size "$BLOCK_SIZE" '.consensus_params["evidence"]["max_bytes"] = $block_size' "$GENESIS_FILE" >"$tmp" && mv "$tmp" "$GENESIS_FILE"
}

# ---------------------------- initial parameters ---------------------------- #
# Assuming 1,000,000 tokens
#half is staked
Expand Down Expand Up @@ -78,7 +84,7 @@ $EXECUTABLE config chain-id "$ROLLAPP_CHAIN_ID"
# -------------------------------- app config -------------------------------- #
sed -i'' -e "s/^minimum-gas-prices *= .*/minimum-gas-prices = \"0$BASE_DENOM\"/" "$APP_CONFIG_FILE"
set_denom "$BASE_DENOM"

set_consensus_params
# --------------------- adding keys and genesis accounts --------------------- #
#local genesis account
$EXECUTABLE keys add "$KEY_NAME_ROLLAPP" --keyring-backend test
Expand Down

0 comments on commit 9bfd030

Please sign in to comment.