Skip to content

Commit

Permalink
set blocks per epoch = 1
Browse files Browse the repository at this point in the history
  • Loading branch information
dasanchez committed Apr 20, 2024
1 parent 33cf264 commit 1731530
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 4 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/upgrade-gaia-v16-fresh-state.yml
Original file line number Diff line number Diff line change
Expand Up @@ -455,6 +455,7 @@
UPGRADE_MECHANISM: ${{ matrix.upgrade_mechanism }}
CHAIN_BINARY_SECONDARY: gaiad-ibc
COMMIT_TIMEOUT: 1
RELAYER: hermes
steps:
- name: start-version
run: echo ${{matrix.gaia_version}}
Expand Down Expand Up @@ -720,6 +721,9 @@
- name: _Blocks produced after upgrade
run: |
tests/test_block_production.sh 127.0.0.1 $VAL1_RPC_PORT 10
- name: Restart relayer
run: sudo systemctl restart $RELAYER

- name: _Test IBC rate limits - osmosis-1
env:
Expand Down Expand Up @@ -1529,6 +1533,10 @@
run: |
tests/test_block_production.sh 127.0.0.1 $VAL1_RPC_PORT 10
- name: Set blocks_per_epoch to 1
run: |
scripts/param_change.sh templates/proposal-blocks-per-epoch.json
- name: Restart relayer
run: sudo systemctl restart $RELAYER

Expand Down
8 changes: 4 additions & 4 deletions tests/gaia-v16/test_rate_limits.sh
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ echo "Rate limit channel value: $supply"
echo "Sending $amount..."
result=$(test_transfer $amount)
echo "test transfer result: $result"
sleep 4m
sleep 3m
$CHAIN_BINARY q bank balances $WALLET_1 --node http://localhost:$rpc_port

if [[ "$result" == "1" ]]; then
Expand All @@ -45,7 +45,7 @@ amount=$(echo "($supply * $fraction)/1 + 1000000" | bc )
echo "Sending $amount..."
result=$(test_transfer $amount)
echo "test transfer result: $result"
sleep 4m
sleep 3m
$CHAIN_BINARY q bank balances $WALLET_1 --node http://localhost:$rpc_port

if [[ "$result" == "0" ]]; then
Expand All @@ -63,7 +63,7 @@ echo "New rate limit channel value: $new_supply"
echo "Sending $amount..."
result=$(test_transfer $amount)
echo "test transfer result: $result"
sleep 4m
sleep 3m
$CHAIN_BINARY q bank balances $WALLET_1 --node http://localhost:$rpc_port

if [[ "$result" == "0" ]]; then
Expand All @@ -81,7 +81,7 @@ echo "New rate limit channel value: $new_supply"
echo "Sending $amount..."
result=$(test_transfer $amount)
echo "test transfer result: $result"
sleep 4m
sleep 3m
$CHAIN_BINARY q bank balances $WALLET_1 --node http://localhost:$rpc_port

if [[ "$result" == "1" ]]; then
Expand Down

0 comments on commit 1731530

Please sign in to comment.