mirror of
https://github.com/cosmos/cosmjs.git
synced 2025-03-11 14:09:15 +00:00
23 lines
637 B
Bash
23 lines
637 B
Bash
![]() |
#!/bin/bash
|
||
|
set -o errexit -o nounset -o pipefail
|
||
|
command -v shellcheck >/dev/null && shellcheck "$0"
|
||
|
|
||
|
gnused="$(command -v gsed || echo sed)"
|
||
|
|
||
|
SCRIPT_DIR="$(realpath "$(dirname "$0")")"
|
||
|
|
||
|
# Create template for slow simapp
|
||
|
(
|
||
|
cd "$SCRIPT_DIR"
|
||
|
rm -rf template_slow
|
||
|
cp -R template template_slow
|
||
|
chmod +x "$SCRIPT_DIR/template_slow/setup.sh"
|
||
|
chmod +x "$SCRIPT_DIR/template_slow/run_simd.sh"
|
||
|
|
||
|
# Slow settings in config.toml
|
||
|
"$gnused" -i \
|
||
|
-e 's/^timeout_broadcast_tx_commit =.*$/timeout_broadcast_tx_commit = "1s"/' \
|
||
|
-e 's/^timeout_commit =.*$/timeout_commit = "10s"/' \
|
||
|
"template_slow/.simapp/config/config.toml"
|
||
|
)
|