Skip to content

Commit

Permalink
Merge pull request #854 from public-awesome/mergify/bp/release/v11.x/…
Browse files Browse the repository at this point in the history
…pr-852

Set app.toml values in docker test image (backport #852)
  • Loading branch information
jhernandezb authored Aug 19, 2023
2 parents 29c3590 + 78b6406 commit bee497f
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions docker/entry-point.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@ CHAINID=${CHAINID:-testing}
DENOM=${DENOM:-ustars}
BLOCK_GAS_LIMIT=${GAS_LIMIT:-75000000}

IAVL_CACHE_SIZE=${IAVL_CACHE_SIZE:-1562500}
QUERY_GAS_LIMIT=${QUERY_GAS_LIMIT:-5000000}
SIMULATION_GAS_LIMIT=${SIMULATION_GAS_LIMIT:-50000000}
MEMORY_CACHE_SIZE=${MEMORY_CACHE_SIZE:-1000}

# Build genesis file incl account for each address passed in
coins="10000000000000000$DENOM"
starsd init --chain-id $CHAINID $CHAINID
Expand All @@ -29,5 +34,10 @@ sed -i 's/timeout_commit = "5s"/timeout_commit = "1s"/g' ~/.starsd/config/config
sed -i 's/timeout_propose = "3s"/timeout_propose = "1s"/g' ~/.starsd/config/config.toml
sed -i 's/index_all_keys = false/index_all_keys = true/g' ~/.starsd/config/config.toml

sed -i "s/iavl-cache-size = 781250/iavl-cache-size = $IAVL_CACHE_SIZE/g" ~/.starsd/config/app.toml
sed -i "s/query_gas_limit = 50000000/query_gas_limit = $QUERY_GAS_LIMIT/g" ~/.starsd/config/app.toml
sed -i "s/simulation_gas_limit = 25000000/simulation_gas_limit = $SIMULATION_GAS_LIMIT/g" ~/.starsd/config/app.toml
sed -i "s/memory_cache_size = 512/memory_cache_size = $MEMORY_CACHE_SIZE/g" ~/.starsd/config/app.toml

# Start the stake
starsd start --pruning=nothing

0 comments on commit bee497f

Please sign in to comment.