From 38ba670353b9a712526061691fdef0c61cbe6179 Mon Sep 17 00:00:00 2001 From: Khanh Hoa Date: Tue, 16 Apr 2024 11:25:22 +0700 Subject: [PATCH] refactor: bump alliance and update test --- go.mod | 2 +- go.sum | 4 ++-- scripts/run-node.sh | 8 ++++---- scripts/tests/init-test-framework.sh | 4 ++-- scripts/upgrade_test.sh | 4 ++-- 5 files changed, 11 insertions(+), 11 deletions(-) diff --git a/go.mod b/go.mod index bf0c7c4b..87d133b3 100644 --- a/go.mod +++ b/go.mod @@ -22,7 +22,7 @@ require ( github.com/spf13/cobra v1.8.0 github.com/spf13/viper v1.18.2 github.com/stretchr/testify v1.9.0 - github.com/terra-money/alliance v0.3.4 + github.com/terra-money/alliance v0.3.6 github.com/terra-money/core/v2 v2.5.0 google.golang.org/grpc v1.62.1 ) diff --git a/go.sum b/go.sum index 9cbe2fcc..c967b002 100644 --- a/go.sum +++ b/go.sum @@ -1007,8 +1007,8 @@ github.com/syndtr/goleveldb v1.0.1-0.20210819022825-2ae1ddf74ef7 h1:epCh84lMvA70 github.com/syndtr/goleveldb v1.0.1-0.20210819022825-2ae1ddf74ef7/go.mod h1:q4W45IWZaF22tdD+VEXcAWRA037jwmWEB5VWYORlTpc= github.com/tendermint/go-amino v0.16.0 h1:GyhmgQKvqF82e2oZeuMSp9JTN0N09emoSZlb2lyGa2E= github.com/tendermint/go-amino v0.16.0/go.mod h1:TQU0M1i/ImAo+tYpZi73AU3V/dKeCoMC9Sphe2ZwGME= -github.com/terra-money/alliance v0.3.4 h1:rBEKw8o9mN8AL6yCS2+Pb8DIi82an2HUnfdUtq5CPNo= -github.com/terra-money/alliance v0.3.4/go.mod h1:HDiUexeXRUkLkLRw5jLQcHuVt1Sx43HfyVl0kfwW3JM= +github.com/terra-money/alliance v0.3.6 h1:FWfix+mKcCrXvdk29MgfXGj0JThOsBxzK81OiSjUMQc= +github.com/terra-money/alliance v0.3.6/go.mod h1:gyenuDQEwyN6mfiOEkaRBaokgk9ryBeU3eCAiZpVKZg= github.com/tidwall/btree v1.6.0 h1:LDZfKfQIBHGHWSwckhXI0RPSXzlo+KYdjK7FWSqOzzg= github.com/tidwall/btree v1.6.0/go.mod h1:twD9XRA5jj9VUQGELzDO4HPQTNJsoWWfYEL+EUQ2cKY= github.com/tmc/grpc-websocket-proxy v0.0.0-20170815181823-89b8d40f7ca8/go.mod h1:ncp9v5uamzpCO7NfCPTXjqaC+bZgJeR0sMTm6dMHP7U= diff --git a/scripts/run-node.sh b/scripts/run-node.sh index fa431b98..315d717e 100755 --- a/scripts/run-node.sh +++ b/scripts/run-node.sh @@ -6,7 +6,7 @@ HOME_DIR=mytestnet ENV=${ENV:-""} if [ "$CONTINUE" == "true" ]; then - $BINARY start --home $HOME_DIR --log_level debug + $BINARY start --p2p.pex=false --home $HOME_DIR --log_level debug exit 0 fi @@ -61,9 +61,9 @@ $BINARY add-genesis-account $KEY "1000000000000${DENOM}" --keyring-backend $KEYR $BINARY add-genesis-account $KEY1 "1000000000000${DENOM}" --keyring-backend $KEYRING --home $HOME_DIR $BINARY add-genesis-account $KEY2 "1000000000000${DENOM}" --keyring-backend $KEYRING --home $HOME_DIR -update_test_genesis '.app_state["gov"]["voting_params"]["voting_period"]="20s"' +update_test_genesis '.app_state["gov"]["params"]["voting_period"]="20s"' update_test_genesis '.app_state["mint"]["params"]["mint_denom"]="'$DENOM'"' -update_test_genesis '.app_state["gov"]["deposit_params"]["min_deposit"]=[{"denom":"'$DENOM'","amount": "1000000"}]' +update_test_genesis '.app_state["gov"]["params"]["min_deposit"]=[{"denom":"'$DENOM'","amount": "1"}]' update_test_genesis '.app_state["crisis"]["constant_fee"]={"denom":"'$DENOM'","amount":"1000"}' update_test_genesis '.app_state["staking"]["params"]["bond_denom"]="'$DENOM'"' @@ -82,5 +82,5 @@ $BINARY collect-gentxs --home $HOME_DIR # Run this to ensure everything worked and that the genesis file is setup correctly $BINARY validate-genesis --home $HOME_DIR -$BINARY start --home $HOME_DIR +$BINARY start --p2p.pex=false --home $HOME_DIR diff --git a/scripts/tests/init-test-framework.sh b/scripts/tests/init-test-framework.sh index 43aed418..f1974fb3 100755 --- a/scripts/tests/init-test-framework.sh +++ b/scripts/tests/init-test-framework.sh @@ -146,8 +146,8 @@ update_test_genesis ".app_state[\"feeburn\"][\"params\"][\"tx_fee_burn_percent\" # Starting the chain echo "Starting $CHAINID_1 in $CHAIN_DIR..." echo "Creating log file at $CHAIN_DIR/$CHAINID_1.log" -$BINARY start --log_level trace --log_format json --home $CHAIN_DIR/$CHAINID_1 --pruning=nothing --grpc.address="0.0.0.0:$GRPCPORT_1" --grpc-web.address="0.0.0.0:$GRPCWEB_1" > $CHAIN_DIR/$CHAINID_1.log 2>&1 & +$BINARY start --log_level trace --log_format json --p2p.pex=false --home $CHAIN_DIR/$CHAINID_1 --pruning=nothing --grpc.address="0.0.0.0:$GRPCPORT_1" --grpc-web.address="0.0.0.0:$GRPCWEB_1" > $CHAIN_DIR/$CHAINID_1.log 2>&1 & echo "Starting $CHAINID_2 in $CHAIN_DIR..." echo "Creating log file at $CHAIN_DIR/$CHAINID_2.log" -$BINARY start --log_level trace --log_format json --home $CHAIN_DIR/$CHAINID_2 --pruning=nothing --grpc.address="0.0.0.0:$GRPCPORT_2" --grpc-web.address="0.0.0.0:$GRPCWEB_2" > $CHAIN_DIR/$CHAINID_2.log 2>&1 & +$BINARY start --log_level trace --log_format json --p2p.pex=false --home $CHAIN_DIR/$CHAINID_2 --pruning=nothing --grpc.address="0.0.0.0:$GRPCPORT_2" --grpc-web.address="0.0.0.0:$GRPCWEB_2" > $CHAIN_DIR/$CHAINID_2.log 2>&1 & diff --git a/scripts/upgrade_test.sh b/scripts/upgrade_test.sh index 33398ba1..14f7685c 100755 --- a/scripts/upgrade_test.sh +++ b/scripts/upgrade_test.sh @@ -101,11 +101,11 @@ run_upgrade () { ./_build/old/migalood keys list --home $HOME --keyring-backend test - ./_build/old/migalood tx gov submit-legacy-proposal software-upgrade "$SOFTWARE_UPGRADE_NAME" --upgrade-height $UPGRADE_HEIGHT --upgrade-info "$UPGRADE_INFO" --title "upgrade" --description "upgrade" --from test1 --keyring-backend test --chain-id $CHAIN_ID --home $HOME -y + ./_build/old/migalood tx gov submit-legacy-proposal software-upgrade "$SOFTWARE_UPGRADE_NAME" --upgrade-height $UPGRADE_HEIGHT --upgrade-info "$UPGRADE_INFO" --title "upgrade" --description "upgrade" --from test1 --keyring-backend test --chain-id $CHAIN_ID --home $HOME -y sleep 5 - ./_build/old/migalood tx gov deposit 1 "20000000${DENOM}" --from test1 --keyring-backend test --chain-id $CHAIN_ID --home $HOME -y + ./_build/old/migalood tx gov deposit 1 "10000000${DENOM}" --from test1 --keyring-backend test --chain-id $CHAIN_ID --home $HOME -y sleep 5