cosmos / cosmos-sdk

:chains: A Framework for Building High Value Public Blockchains :sparkles:
https://cosmos.network/
Apache License 2.0
6.07k stars 3.49k forks source link

v045-to-v046 upgrade unsuccessful. #13662

Closed aansheng closed 1 year ago

aansheng commented 1 year ago

Summary of Bug

Upgrade from v0.44.8 to v0.45.0 failed.

Version

$ go version
go version go1.19.1 linux/arm64

$ cosmovisor version
cosmovisor version: v1.4.0

Steps to Reproduce

$ vim setup-node.sh
#!/bin/bash

export DAEMON_NAME=simd
export DAEMON_HOME=$HOME/.simapp
export VERSION=v0.44.8

# update if needed
export DAEMON_ALLOW_DOWNLOAD_BINARIES=false
export DAEMON_RESTART_AFTER_UPGRADE=true

rm -fr $DAEMON_HOME

# setup cored binaries
cd $HOME/workspaces/cosmos/simapp
git reset --hard
git checkout $VERSION
make build

./build/simd config chain-id test
./build/simd config keyring-backend test

./build/simd init test --chain-id test

cat <<< $(jq '.app_state.gov.voting_params.voting_period = "20s"' $HOME/.simapp/config/genesis.json) > $HOME/.simapp/config/genesis.json

./build/simd keys add validator
./build/simd add-genesis-account validator 1000000000stake --keyring-backend test
./build/simd gentx validator 1000000stake --chain-id test
./build/simd collect-gentxs

mkdir -p $DAEMON_HOME/cosmovisor/genesis/bin
cp ./build/simd $DAEMON_HOME/cosmovisor/genesis/bin

# setup cored data
cosmovisor run start --home $DAEMON_HOME
$ vim upgrade-proposal.sh
#!/bin/bash

export DAEMON_NAME=simd
export DAEMON_HOME=$HOME/.simapp
export VERSION=v0.45.0
export UPGRADE_NAME="v045-to-v046"

# update if needed
export DAEMON_ALLOW_DOWNLOAD_BINARIES=false
export DAEMON_RESTART_AFTER_UPGRADE=true

cd $HOME/workspaces/cosmos/simapp
git reset --hard
git checkout $VERSION
make build

mkdir -p $DAEMON_HOME/cosmovisor/upgrades/$UPGRADE_NAME/bin
cp ./build/simd $DAEMON_HOME/cosmovisor/upgrades/$UPGRADE_NAME/bin

# Send SoftwareUpgrade proposal - Upgrade Name: $VERSION
./build/simd tx gov submit-proposal \
  software-upgrade $UPGRADE_NAME \
  --upgrade-height 15 \
  --title $UPGRADE_NAME \
  --description $UPGRADE_NAME \
  --from validator \
  --yes \
  --home $DAEMON_HOME \
  --chain-id test

sleep 5

# Deposit for the proposal - Proposal ID: 1
./build/simd tx gov deposit 1 10000000stake \
  --from validator \
  --yes \
  --home $DAEMON_HOME \
  --chain-id test

sleep 5

# Vote for the proposal
./build/simd tx gov vote 1 yes \
  --from validator \
  --yes \
  --home $DAEMON_HOME \
  --chain-id test

The entire log of the genesis node is as follows.

$ bash setup-node.sh
HEAD is now at b6c77e6c8 chore: release v0.45 changelog (#10964)
Previous HEAD position was b6c77e6c8 chore: release v0.45 changelog (#10964)
HEAD is now at d0043914b chore: v0.44.8 Release Notes (#11610)
go build -mod=readonly -tags "netgo ledger" -ldflags '-X github.com/cosmos/cosmos-sdk/version.Name=sim -X github.com/cosmos/cosmos-sdk/version.AppName=simd -X github.com/cosmos/cosmos-sdk/version.Version=0.44.8 -X github.com/cosmos/cosmos-sdk/version.Commit=d0043914ba7c37c3a0d7039d2c2a2aca6b38a93b -X "github.com/cosmos/cosmos-sdk/version.BuildTags=netgo ledger," -X github.com/tendermint/tendermint/version.TMCoreSemVer=v0.34.19 -w -s' -trimpath -o /home/ansheng.linux/workspaces/cosmos/simapp/build/ ./...
{"app_message":{"auth":{"accounts":[],"params":{"max_memo_characters":"256","sig_verify_cost_ed25519":"590","sig_verify_cost_secp256k1":"1000","tx_sig_limit":"7","tx_size_cost_per_byte":"10"}},"authz":{"authorization":[]},"bank":{"balances":[],"denom_metadata":[],"params":{"default_send_enabled":true,"send_enabled":[]},"supply":[]},"capability":{"index":"1","owners":[]},"crisis":{"constant_fee":{"amount":"1000","denom":"stake"}},"distribution":{"delegator_starting_infos":[],"delegator_withdraw_infos":[],"fee_pool":{"community_pool":[]},"outstanding_rewards":[],"params":{"base_proposer_reward":"0.010000000000000000","bonus_proposer_reward":"0.040000000000000000","community_tax":"0.020000000000000000","withdraw_addr_enabled":true},"previous_proposer":"","validator_accumulated_commissions":[],"validator_current_rewards":[],"validator_historical_rewards":[],"validator_slash_events":[]},"evidence":{"evidence":[]},"feegrant":{"allowances":[]},"genutil":{"gen_txs":[]},"gov":{"deposit_params":{"max_deposit_period":"172800s","min_deposit":[{"amount":"10000000","denom":"stake"}]},"deposits":[],"proposals":[],"starting_proposal_id":"1","tally_params":{"quorum":"0.334000000000000000","threshold":"0.500000000000000000","veto_threshold":"0.334000000000000000"},"votes":[],"voting_params":{"voting_period":"172800s"}},"mint":{"minter":{"annual_provisions":"0.000000000000000000","inflation":"0.130000000000000000"},"params":{"blocks_per_year":"6311520","goal_bonded":"0.670000000000000000","inflation_max":"0.200000000000000000","inflation_min":"0.070000000000000000","inflation_rate_change":"0.130000000000000000","mint_denom":"stake"}},"params":null,"slashing":{"missed_blocks":[],"params":{"downtime_jail_duration":"600s","min_signed_per_window":"0.500000000000000000","signed_blocks_window":"100","slash_fraction_double_sign":"0.050000000000000000","slash_fraction_downtime":"0.010000000000000000"},"signing_infos":[]},"staking":{"delegations":[],"exported":false,"last_total_power":"0","last_validator_powers":[],"params":{"bond_denom":"stake","historical_entries":10000,"max_entries":7,"max_validators":100,"unbonding_time":"1814400s"},"redelegations":[],"unbonding_delegations":[],"validators":[]},"upgrade":{},"vesting":{}},"chain_id":"test","gentxs_dir":"","moniker":"test","node_id":"27582fde584e3ec8d86b071d4beb33e1ad35fec4"}

- name: validator
  type: local
  address: cosmos1qavhj7s69y96ylg4q6fuhk2me8xgw84eh0artp
  pubkey: '{"@type":"/cosmos.crypto.secp256k1.PubKey","key":"AznBB/sBthSoX/9a6ahUZzhg9icX0NBbeWeVjrMwR8sx"}'
  mnemonic: ""

**Important** write this mnemonic phrase in a safe place.
It is the only way to recover your account if you ever forget your password.

process feed later arctic ridge sign iron tuna brief tuition sudden rather spoon extend execute arctic clay jungle merge night life mountain liar run
Genesis transaction written to "/home/ansheng.linux/.simapp/config/gentx/gentx-27582fde584e3ec8d86b071d4beb33e1ad35fec4.json"
{"app_message":{"auth":{"accounts":[{"@type":"/cosmos.auth.v1beta1.BaseAccount","account_number":"0","address":"cosmos1qavhj7s69y96ylg4q6fuhk2me8xgw84eh0artp","pub_key":null,"sequence":"0"}],"params":{"max_memo_characters":"256","sig_verify_cost_ed25519":"590","sig_verify_cost_secp256k1":"1000","tx_sig_limit":"7","tx_size_cost_per_byte":"10"}},"authz":{"authorization":[]},"bank":{"balances":[{"address":"cosmos1qavhj7s69y96ylg4q6fuhk2me8xgw84eh0artp","coins":[{"amount":"1000000000","denom":"stake"}]}],"denom_metadata":[],"params":{"default_send_enabled":true,"send_enabled":[]},"supply":[{"amount":"1000000000","denom":"stake"}]},"capability":{"index":"1","owners":[]},"crisis":{"constant_fee":{"amount":"1000","denom":"stake"}},"distribution":{"delegator_starting_infos":[],"delegator_withdraw_infos":[],"fee_pool":{"community_pool":[]},"outstanding_rewards":[],"params":{"base_proposer_reward":"0.010000000000000000","bonus_proposer_reward":"0.040000000000000000","community_tax":"0.020000000000000000","withdraw_addr_enabled":true},"previous_proposer":"","validator_accumulated_commissions":[],"validator_current_rewards":[],"validator_historical_rewards":[],"validator_slash_events":[]},"evidence":{"evidence":[]},"feegrant":{"allowances":[]},"genutil":{"gen_txs":[{"auth_info":{"fee":{"amount":[],"gas_limit":"200000","granter":"","payer":""},"signer_infos":[{"mode_info":{"single":{"mode":"SIGN_MODE_DIRECT"}},"public_key":{"@type":"/cosmos.crypto.secp256k1.PubKey","key":"AznBB/sBthSoX/9a6ahUZzhg9icX0NBbeWeVjrMwR8sx"},"sequence":"0"}]},"body":{"extension_options":[],"memo":"27582fde584e3ec8d86b071d4beb33e1ad35fec4@192.168.5.15:26656","messages":[{"@type":"/cosmos.staking.v1beta1.MsgCreateValidator","commission":{"max_change_rate":"0.010000000000000000","max_rate":"0.200000000000000000","rate":"0.100000000000000000"},"delegator_address":"cosmos1qavhj7s69y96ylg4q6fuhk2me8xgw84eh0artp","description":{"details":"","identity":"","moniker":"test","security_contact":"","website":""},"min_self_delegation":"1","pubkey":{"@type":"/cosmos.crypto.ed25519.PubKey","key":"szmnxxJS5qVMf/QDlVnm+4v1UOfclc2uTsoeCu55i50="},"validator_address":"cosmosvaloper1qavhj7s69y96ylg4q6fuhk2me8xgw84ejmfk8j","value":{"amount":"1000000","denom":"stake"}}],"non_critical_extension_options":[],"timeout_height":"0"},"signatures":["vq9P1rdrty14OkiCLwzAh7mgWZewX8mw5koV2/NuYWoijb3xuBjaWppaMEComyHBUf+TZRL+QTioJ210v9M8zQ=="]}]},"gov":{"deposit_params":{"max_deposit_period":"172800s","min_deposit":[{"amount":"10000000","denom":"stake"}]},"deposits":[],"proposals":[],"starting_proposal_id":"1","tally_params":{"quorum":"0.334000000000000000","threshold":"0.500000000000000000","veto_threshold":"0.334000000000000000"},"votes":[],"voting_params":{"voting_period":"20s"}},"mint":{"minter":{"annual_provisions":"0.000000000000000000","inflation":"0.130000000000000000"},"params":{"blocks_per_year":"6311520","goal_bonded":"0.670000000000000000","inflation_max":"0.200000000000000000","inflation_min":"0.070000000000000000","inflation_rate_change":"0.130000000000000000","mint_denom":"stake"}},"params":null,"slashing":{"missed_blocks":[],"params":{"downtime_jail_duration":"600s","min_signed_per_window":"0.500000000000000000","signed_blocks_window":"100","slash_fraction_double_sign":"0.050000000000000000","slash_fraction_downtime":"0.010000000000000000"},"signing_infos":[]},"staking":{"delegations":[],"exported":false,"last_total_power":"0","last_validator_powers":[],"params":{"bond_denom":"stake","historical_entries":10000,"max_entries":7,"max_validators":100,"unbonding_time":"1814400s"},"redelegations":[],"unbonding_delegations":[],"validators":[]},"upgrade":{},"vesting":{}},"chain_id":"test","gentxs_dir":"/home/ansheng.linux/.simapp/config/gentx","moniker":"test","node_id":"27582fde584e3ec8d86b071d4beb33e1ad35fec4"}
3:27PM INF running app args=["start","--home","/home/ansheng.linux/.simapp"] module=cosmovisor path=/home/ansheng.linux/.simapp/cosmovisor/genesis/bin/simd
3:27PM INF starting ABCI with Tendermint
3:27PM INF Starting multiAppConn service impl=multiAppConn module=proxy
3:27PM INF Starting localClient service connection=query impl=localClient module=abci-client
3:27PM INF Starting localClient service connection=snapshot impl=localClient module=abci-client
3:27PM INF Starting localClient service connection=mempool impl=localClient module=abci-client
3:27PM INF Starting localClient service connection=consensus impl=localClient module=abci-client
3:27PM INF Starting EventBus service impl=EventBus module=events
3:27PM INF Starting PubSub service impl=PubSub module=pubsub
3:27PM INF Starting IndexerService service impl=IndexerService module=txindex
3:27PM INF ABCI Handshake App Info hash= height=0 module=consensus protocol-version=0 software-version=0.44.8
3:27PM INF ABCI Replay Blocks appHeight=0 module=consensus stateHeight=0 storeHeight=0
3:27PM INF asserting crisis invariants inv=0/11 module=x/crisis name=staking/module-accounts
3:27PM INF asserting crisis invariants inv=1/11 module=x/crisis name=staking/nonnegative-power
3:27PM INF asserting crisis invariants inv=2/11 module=x/crisis name=staking/positive-delegation
3:27PM INF asserting crisis invariants inv=3/11 module=x/crisis name=staking/delegator-shares
3:27PM INF asserting crisis invariants inv=4/11 module=x/crisis name=bank/nonnegative-outstanding
3:27PM INF asserting crisis invariants inv=5/11 module=x/crisis name=bank/total-supply
3:27PM INF asserting crisis invariants inv=6/11 module=x/crisis name=gov/module-account
3:27PM INF asserting crisis invariants inv=7/11 module=x/crisis name=distribution/nonnegative-outstanding
3:27PM INF asserting crisis invariants inv=8/11 module=x/crisis name=distribution/can-withdraw
3:27PM INF asserting crisis invariants inv=9/11 module=x/crisis name=distribution/reference-count
3:27PM INF asserting crisis invariants inv=10/11 module=x/crisis name=distribution/module-account
3:27PM INF asserted all invariants duration=0.670604 height=0 module=x/crisis
3:27PM INF Completed ABCI Handshake - Tendermint and App are synced appHash= appHeight=0 module=consensus
3:27PM INF Version info block=11 p2p=8 tendermint_version=v0.34.19
3:27PM INF This node is a validator addr=A1CA7C8037C2D9007D604CF28431C29D69499F46 module=consensus pubKey=szmnxxJS5qVMf/QDlVnm+4v1UOfclc2uTsoeCu55i50=
3:27PM INF P2P Node ID ID=27582fde584e3ec8d86b071d4beb33e1ad35fec4 file=/home/ansheng.linux/.simapp/config/node_key.json module=p2p
3:27PM INF Adding persistent peers addrs=[] module=p2p
3:27PM INF Adding unconditional peer ids ids=[] module=p2p
3:27PM INF Add our address to book addr={"id":"27582fde584e3ec8d86b071d4beb33e1ad35fec4","ip":"0.0.0.0","port":26656} book=/home/ansheng.linux/.simapp/config/addrbook.json module=p2p
3:27PM INF Starting Node service impl=Node
3:27PM INF Starting pprof server laddr=localhost:6060
3:27PM INF Starting RPC HTTP server on 127.0.0.1:26657 module=rpc-server
3:27PM INF Starting P2P Switch service impl="P2P Switch" module=p2p
3:27PM INF Starting BlockchainReactor service impl=BlockchainReactor module=blockchain
3:27PM INF Starting Consensus service impl=ConsensusReactor module=consensus
3:27PM INF Reactor  module=consensus waitSync=false
3:27PM INF Starting State service impl=ConsensusState module=consensus
3:27PM INF Starting baseWAL service impl=baseWAL module=consensus wal=/home/ansheng.linux/.simapp/data/cs.wal/wal
3:27PM INF Starting Group service impl=Group module=consensus wal=/home/ansheng.linux/.simapp/data/cs.wal/wal
3:27PM INF Starting TimeoutTicker service impl=TimeoutTicker module=consensus
3:27PM INF Searching for height height=1 max=0 min=0 module=consensus wal=/home/ansheng.linux/.simapp/data/cs.wal/wal
3:27PM INF Searching for height height=0 max=0 min=0 module=consensus wal=/home/ansheng.linux/.simapp/data/cs.wal/wal
3:27PM INF Found height=0 index=0 module=consensus wal=/home/ansheng.linux/.simapp/data/cs.wal/wal
3:27PM INF Catchup by replaying consensus messages height=1 module=consensus
3:27PM INF Replay: Done module=consensus
3:27PM INF Starting Evidence service impl=Evidence module=evidence
3:27PM INF Starting StateSync service impl=StateSync module=statesync
3:27PM INF Starting PEX service impl=PEX module=pex
3:27PM INF Starting AddrBook service book=/home/ansheng.linux/.simapp/config/addrbook.json impl=AddrBook module=p2p
3:27PM INF Starting Mempool service impl=Mempool module=mempool
3:27PM INF Saving AddrBook to file book=/home/ansheng.linux/.simapp/config/addrbook.json module=p2p size=0
3:27PM INF Ensure peers module=pex numDialing=0 numInPeers=0 numOutPeers=0 numToDial=10
3:27PM INF No addresses to dial. Falling back to seeds module=pex
3:27PM INF Timed out dur=4997.303335 height=1 module=consensus round=0 step=1
3:27PM INF received proposal module=consensus proposal={"Type":32,"block_id":{"hash":"696173FAB3D7D79CE5F4D77F47CC6140424C858D98CCD680FBE83B72ED054ADD","parts":{"hash":"7C1EC2FC79723EF24AF12EB750B44965290CAE6401D3082A98B14E568AE6EBFE","total":1}},"height":1,"pol_round":-1,"round":0,"signature":"nLsRniTmUz5ASPl9Y3X4OrQBe1SbeX3CGSEkFs93gt/DquuBGythkGLAQDCBc+9yqlkf8QvPaYx9G7I/54e3Cg==","timestamp":"2022-10-26T15:27:57.528180869Z"}
3:27PM INF received complete proposal block hash=696173FAB3D7D79CE5F4D77F47CC6140424C858D98CCD680FBE83B72ED054ADD height=1 module=consensus
3:27PM INF finalizing commit of block hash=696173FAB3D7D79CE5F4D77F47CC6140424C858D98CCD680FBE83B72ED054ADD height=1 module=consensus num_txs=0 root=E3B0C44298FC1C149AFBF4C8996FB92427AE41E4649B934CA495991B7852B855
3:27PM INF minted coins from module account amount=20stake from=mint module=x/bank
3:27PM INF executed block height=1 module=state num_invalid_txs=0 num_valid_txs=0
3:27PM INF commit synced commit=436F6D6D697449447B5B363820323232203130332035302031333220342032323820323533203233362032303420363420383520353320313631203720343620313130203837203138302031303720313636203838203833203635203134382032312039382034203136342032333720313739203137305D3A317D
3:27PM INF committed state app_hash=44DE67328404E4FDECCC405535A1072E6E57B46BA658534194156204A4EDB3AA height=1 module=state num_txs=0
3:27PM INF indexed block height=1 module=txindex
3:28PM INF Timed out dur=4994.475925 height=2 module=consensus round=0 step=1
3:28PM INF received proposal module=consensus proposal={"Type":32,"block_id":{"hash":"AEBA28622E411424D874E3DD090D3F5DC9B4A9BA95B445800591EDB76B02C38C","parts":{"hash":"783A3D741E7B8DBE25EFA1CFF995E4A448BBD940DD8803C4DEEC463E82FD5AF5","total":1}},"height":2,"pol_round":-1,"round":0,"signature":"N6Z19EMF6RYBZNHyKf3NnqP2EwmhFxTkQaE//f76/OPYhRLXNN4OSD76ljyRU9x5dxj0ZsUvPdjKtpu/7FaTDw==","timestamp":"2022-10-26T15:28:02.540915717Z"}
3:28PM INF received complete proposal block hash=AEBA28622E411424D874E3DD090D3F5DC9B4A9BA95B445800591EDB76B02C38C height=2 module=consensus
3:28PM INF finalizing commit of block hash=AEBA28622E411424D874E3DD090D3F5DC9B4A9BA95B445800591EDB76B02C38C height=2 module=consensus num_txs=0 root=44DE67328404E4FDECCC405535A1072E6E57B46BA658534194156204A4EDB3AA
3:28PM INF minted coins from module account amount=20stake from=mint module=x/bank
3:28PM INF executed block height=2 module=state num_invalid_txs=0 num_valid_txs=0
3:28PM INF commit synced commit=436F6D6D697449447B5B313039203838203832203833203120343920353620313932203138302031373520313837203139392032313320393320393820373620363320323437203232392038342031323220373520323336203134392032353120323520323320323430203230392032343620323333203136355D3A327D
3:28PM INF committed state app_hash=6D585253013138C0B4AFBBC7D55D624C3FF7E5547A4BEC95FB1917F0D1F6E9A5 height=2 module=state num_txs=0
3:28PM INF indexed block height=2 module=txindex
3:28PM INF Timed out dur=4996.02706 height=3 module=consensus round=0 step=1
3:28PM INF received proposal module=consensus proposal={"Type":32,"block_id":{"hash":"A155BCAE73E1DA45FA15BC47DA5ED0F1363FF331D5D02B43B70CF70C2579C19A","parts":{"hash":"E4C6F4F3718DBA150DE14382D7BC83E046CCE3B2E567AE17B2FB9AC165B441BB","total":1}},"height":3,"pol_round":-1,"round":0,"signature":"5Cb5J4ud6IbMDaIYDTLJzUzNDr8WJKizTQ5HM/NWNDPHZ133vpc+XR2SUKHZf5MEHJJUQV1Q+N2VimjVA5XkDg==","timestamp":"2022-10-26T15:28:07.550677689Z"}
3:28PM INF received complete proposal block hash=A155BCAE73E1DA45FA15BC47DA5ED0F1363FF331D5D02B43B70CF70C2579C19A height=3 module=consensus
3:28PM INF finalizing commit of block hash=A155BCAE73E1DA45FA15BC47DA5ED0F1363FF331D5D02B43B70CF70C2579C19A height=3 module=consensus num_txs=1 root=6D585253013138C0B4AFBBC7D55D624C3FF7E5547A4BEC95FB1917F0D1F6E9A5
3:28PM INF minted coins from module account amount=20stake from=mint module=x/bank
3:28PM INF executed block height=3 module=state num_invalid_txs=0 num_valid_txs=1
3:28PM INF commit synced commit=436F6D6D697449447B5B3637203138302031363420383220363520313536203232322031353120313132203233352032303420313331203232322031303920313834203239203934203234302032333820323239203230322033302033312039342032322033342031343120313937203235312032303120323337203134335D3A337D
3:28PM INF committed state app_hash=43B4A452419CDE9770EBCC83DE6DB81D5EF0EEE5CA1E1F5E16228DC5FBC9ED8F height=3 module=state num_txs=1
3:28PM INF indexed block height=3 module=txindex
3:28PM INF Timed out dur=4994.786576 height=4 module=consensus round=0 step=1
3:28PM INF received proposal module=consensus proposal={"Type":32,"block_id":{"hash":"C371BEEB7BCF757B50E781DDEAC61F8E9E1005D5327432DCEB100DE918C40363","parts":{"hash":"06BE1C0B805D9E82B6FE64F984D05A54759C8BC8E8B670F3EE16DB55EF0176A4","total":1}},"height":4,"pol_round":-1,"round":0,"signature":"P6yEHPHa1OWM1zfsKUDEI2NAkXQJrxFGIunztTF+6BiNZVyZN7xy0nzwCM01tFQ5zP339myQwtvk5P8/VFgHAg==","timestamp":"2022-10-26T15:28:12.560358588Z"}
3:28PM INF received complete proposal block hash=C371BEEB7BCF757B50E781DDEAC61F8E9E1005D5327432DCEB100DE918C40363 height=4 module=consensus
3:28PM INF finalizing commit of block hash=C371BEEB7BCF757B50E781DDEAC61F8E9E1005D5327432DCEB100DE918C40363 height=4 module=consensus num_txs=1 root=43B4A452419CDE9770EBCC83DE6DB81D5EF0EEE5CA1E1F5E16228DC5FBC9ED8F
3:28PM INF minted coins from module account amount=20stake from=mint module=x/bank
3:28PM INF executed block height=4 module=state num_invalid_txs=0 num_valid_txs=1
3:28PM INF commit synced commit=436F6D6D697449447B5B3131322031353420323720313537203020383620313930203133382031312031313620323238203431203339203233382032343220313834203739203230352037362032313220362031303420313339203232312032352033362031383120313839203333203639203133362039375D3A347D
3:28PM INF committed state app_hash=709A1B9D0056BE8A0B74E42927EEF2B84FCD4CD406688BDD1924B5BD21458861 height=4 module=state num_txs=1
3:28PM INF indexed block height=4 module=txindex
3:28PM INF Timed out dur=4995.269761 height=5 module=consensus round=0 step=1
3:28PM INF received proposal module=consensus proposal={"Type":32,"block_id":{"hash":"2624DBA6A062FB2F907665013A55D03EBE4DA49AECD81FF20BE16F8EA0CF68E1","parts":{"hash":"9601879A5B6E83923AC717D866EF5750ED81432AF661F5F585352F3A0792453D","total":1}},"height":5,"pol_round":-1,"round":0,"signature":"1V86T2GBFVjYbzA5jE8oeQRdWMHF99K329iXP19xT6/VO+ZlxvDl8wuom96hWawaCPfqy8idita7gFd7TAUxCQ==","timestamp":"2022-10-26T15:28:17.57151229Z"}
3:28PM INF received complete proposal block hash=2624DBA6A062FB2F907665013A55D03EBE4DA49AECD81FF20BE16F8EA0CF68E1 height=5 module=consensus
3:28PM INF finalizing commit of block hash=2624DBA6A062FB2F907665013A55D03EBE4DA49AECD81FF20BE16F8EA0CF68E1 height=5 module=consensus num_txs=1 root=709A1B9D0056BE8A0B74E42927EEF2B84FCD4CD406688BDD1924B5BD21458861
3:28PM INF minted coins from module account amount=20stake from=mint module=x/bank
3:28PM INF executed block height=5 module=state num_invalid_txs=0 num_valid_txs=1
3:28PM INF commit synced commit=436F6D6D697449447B5B343320343720313034203139302032313320353120323332203136392032313020313337203230392031333220323135203135342032303920363920313936203233382031313120313534203539203232203233312038312033372039392039352031393820323920363320323339203234385D3A357D
3:28PM INF committed state app_hash=2B2F68BED533E8A9D289D184D79AD145C4EE6F9A3B16E75125635FC61D3FEFF8 height=5 module=state num_txs=1
3:28PM INF indexed block height=5 module=txindex
3:28PM INF Ensure peers module=pex numDialing=0 numInPeers=0 numOutPeers=0 numToDial=10
3:28PM INF No addresses to dial. Falling back to seeds module=pex
3:28PM INF Timed out dur=4995.42902 height=6 module=consensus round=0 step=1
3:28PM INF received proposal module=consensus proposal={"Type":32,"block_id":{"hash":"C9B5211DC01933EBF5B9C42A9B43C727ADA4A0B0F263748E04ECFA404FE67BF5","parts":{"hash":"20FA04CDE640E45B2FA3C2080365D1D4BEF77D4806615D371ECE31CA7774C2E3","total":1}},"height":6,"pol_round":-1,"round":0,"signature":"DaND3exEviHXwD6U59NQq20nTfLNeO9Vk1bww/z2Vhr1h0VwUlTwcX261vzPiuxHrMYP9LL/LTAjCLZgHPlIBw==","timestamp":"2022-10-26T15:28:22.582080294Z"}
3:28PM INF received complete proposal block hash=C9B5211DC01933EBF5B9C42A9B43C727ADA4A0B0F263748E04ECFA404FE67BF5 height=6 module=consensus
3:28PM INF finalizing commit of block hash=C9B5211DC01933EBF5B9C42A9B43C727ADA4A0B0F263748E04ECFA404FE67BF5 height=6 module=consensus num_txs=0 root=2B2F68BED533E8A9D289D184D79AD145C4EE6F9A3B16E75125635FC61D3FEFF8
3:28PM INF minted coins from module account amount=20stake from=mint module=x/bank
3:28PM INF executed block height=6 module=state num_invalid_txs=0 num_valid_txs=0
3:28PM INF commit synced commit=436F6D6D697449447B5B31373620313935203733203937203132332031323820313230203732203138392032343620313739203130332031313420313339203233352032352031203134302031353720373320313132203938203233372037392034302035342038372031382031363220313930203931203232355D3A367D
3:28PM INF committed state app_hash=B0C349617B807848BDF6B367728BEB19018C9D497062ED4F28365712A2BE5BE1 height=6 module=state num_txs=0
3:28PM INF indexed block height=6 module=txindex
3:28PM INF Timed out dur=4995.724615 height=7 module=consensus round=0 step=1
3:28PM INF received proposal module=consensus proposal={"Type":32,"block_id":{"hash":"2C1F5263F474E9C99A8B8FDF6FF10D58D93A0C4A9873C102083CE1E380921FD0","parts":{"hash":"3117AD2DC3D23CE0A96869421DDACC1D1ECA20E27E282617E8ED5FD03E845A1C","total":1}},"height":7,"pol_round":-1,"round":0,"signature":"pAnqKIzhr8whqPP22c//oG/zA0Rvyubbcb5wvA9aEO4U3Wj6h3zVST377MZb4WuVd+3gnqJ6+EZ/N/qbuHbdCw==","timestamp":"2022-10-26T15:28:27.590591708Z"}
3:28PM INF received complete proposal block hash=2C1F5263F474E9C99A8B8FDF6FF10D58D93A0C4A9873C102083CE1E380921FD0 height=7 module=consensus
3:28PM INF finalizing commit of block hash=2C1F5263F474E9C99A8B8FDF6FF10D58D93A0C4A9873C102083CE1E380921FD0 height=7 module=consensus num_txs=0 root=B0C349617B807848BDF6B367728BEB19018C9D497062ED4F28365712A2BE5BE1
3:28PM INF minted coins from module account amount=20stake from=mint module=x/bank
3:28PM INF executed block height=7 module=state num_invalid_txs=0 num_valid_txs=0
3:28PM INF commit synced commit=436F6D6D697449447B5B3330203235312032303920323030203837203236203335203133322036392031313320373520323139203232332032313720313535203230382031343220333820313832203230392039203231302036302037322031373420313437203130392031393120323436203733203133203137355D3A377D
3:28PM INF committed state app_hash=1EFBD1C8571A238445714BDBDFD99BD08E26B6D109D23C48AE936DBFF6490DAF height=7 module=state num_txs=0
3:28PM INF indexed block height=7 module=txindex
3:28PM INF Timed out dur=4995.558034 height=8 module=consensus round=0 step=1
3:28PM INF received proposal module=consensus proposal={"Type":32,"block_id":{"hash":"85FFCB7BD809555CEFE2472CA6BC047892615946903FDEC589CAA20BA1245361","parts":{"hash":"AA67B178D9340D2CA175DA931442A7B6A80E6CB2133C2A3D6B9BD2AD17417E5A","total":1}},"height":8,"pol_round":-1,"round":0,"signature":"S4kNxkPkvosu1wSzs2x9nRw+Hn714GhwFdaniEoza7feqsIKAr087d0o1Q/genugzh3SXSAks1Vq8GDu73SEDw==","timestamp":"2022-10-26T15:28:32.598549043Z"}
3:28PM INF received complete proposal block hash=85FFCB7BD809555CEFE2472CA6BC047892615946903FDEC589CAA20BA1245361 height=8 module=consensus
3:28PM INF finalizing commit of block hash=85FFCB7BD809555CEFE2472CA6BC047892615946903FDEC589CAA20BA1245361 height=8 module=consensus num_txs=0 root=1EFBD1C8571A238445714BDBDFD99BD08E26B6D109D23C48AE936DBFF6490DAF
3:28PM INF minted coins from module account amount=20stake from=mint module=x/bank
3:28PM INF proposal tallied module=x/gov proposal=1 result=passed title=v045-to-v046
3:28PM INF executed block height=8 module=state num_invalid_txs=0 num_valid_txs=0
3:28PM INF commit synced commit=436F6D6D697449447B5B3136382032333720323036203339203131312032313520383820313831203136302032343620313638203232392034392035372033352032312031363120313838203639203134312032323620323230203220313820343920313036203136312031313820373820313238203133392036325D3A387D
3:28PM INF committed state app_hash=A8EDCE276FD758B5A0F6A8E531392315A1BC458DE2DC0212316AA1764E808B3E height=8 module=state num_txs=0
3:28PM INF indexed block height=8 module=txindex
3:28PM INF Timed out dur=4995.040778 height=9 module=consensus round=0 step=1
3:28PM INF received proposal module=consensus proposal={"Type":32,"block_id":{"hash":"D1BF6F1B7BA4DB4A1E9B87ED750D76E01ADC0EB790759B093F4D7E99026B1E03","parts":{"hash":"C2A3A7869B30FD25A19E24E192ED103BF1613AA2ED987C765BDF76A86D673BBB","total":1}},"height":9,"pol_round":-1,"round":0,"signature":"BrjOMGxqWRk6KexfinsLaKd/hBFqhnHjMxWLDX57MWl2QeELa3JZue4aZV5l8aW8fm0WXKDUjI0u5svLude8AQ==","timestamp":"2022-10-26T15:28:37.60894509Z"}
3:28PM INF received complete proposal block hash=D1BF6F1B7BA4DB4A1E9B87ED750D76E01ADC0EB790759B093F4D7E99026B1E03 height=9 module=consensus
3:28PM INF finalizing commit of block hash=D1BF6F1B7BA4DB4A1E9B87ED750D76E01ADC0EB790759B093F4D7E99026B1E03 height=9 module=consensus num_txs=0 root=A8EDCE276FD758B5A0F6A8E531392315A1BC458DE2DC0212316AA1764E808B3E
3:28PM INF minted coins from module account amount=20stake from=mint module=x/bank
3:28PM INF executed block height=9 module=state num_invalid_txs=0 num_valid_txs=0
3:28PM INF commit synced commit=436F6D6D697449447B5B32323120313335203139392031393320323333203839203230302036312031393920313020343120323032203135312031343320343420323133203139332038352032313520333320363820313820313034203131312031363620313020343520323037203231203135362032353320375D3A397D
3:28PM INF committed state app_hash=DD87C7C1E959C83DC70A29CA978F2CD5C155D7214412686FA60A2DCF159CFD07 height=9 module=state num_txs=0
3:28PM INF indexed block height=9 module=txindex
3:28PM INF Timed out dur=4996.035759 height=10 module=consensus round=0 step=1
3:28PM INF received proposal module=consensus proposal={"Type":32,"block_id":{"hash":"494954A9BC74B983AB1F54F04B220B450AD4B7FD6D5238474EA456396FE6B4AF","parts":{"hash":"4131AA0EC770C407AE4FFF073F15779A160A96C6A9853577300444B3D6EEFAA9","total":1}},"height":10,"pol_round":-1,"round":0,"signature":"GzPG6+/pi/7Z2MTorCpBL9nY8M8gwvBpSQloLPOP7BSReD/BGPc8yJgIrKTAhnkgKVVjjZfRSXSs1AmrJSd3DA==","timestamp":"2022-10-26T15:28:42.619906512Z"}
3:28PM INF received complete proposal block hash=494954A9BC74B983AB1F54F04B220B450AD4B7FD6D5238474EA456396FE6B4AF height=10 module=consensus
3:28PM INF finalizing commit of block hash=494954A9BC74B983AB1F54F04B220B450AD4B7FD6D5238474EA456396FE6B4AF height=10 module=consensus num_txs=0 root=DD87C7C1E959C83DC70A29CA978F2CD5C155D7214412686FA60A2DCF159CFD07
3:28PM INF minted coins from module account amount=20stake from=mint module=x/bank
3:28PM INF executed block height=10 module=state num_invalid_txs=0 num_valid_txs=0
3:28PM INF commit synced commit=436F6D6D697449447B5B3234332030203438203134203138312031203133342032353420323235203230332031353220313531203230302032343820323239203135312034382031313820363820323137203236203231332030203134392037322032333720313734203130342033203332203134203235325D3A417D
3:28PM INF committed state app_hash=F300300EB50186FEE1CB9897C8F8E597307644D91AD5009548EDAE6803200EFC height=10 module=state num_txs=0
3:28PM INF indexed block height=10 module=txindex
3:28PM INF Timed out dur=4995.965053 height=11 module=consensus round=0 step=1
3:28PM INF received proposal module=consensus proposal={"Type":32,"block_id":{"hash":"1ADA14F58AEA9B91CF73826132999F7998997F4BCB0E361E07C5D938D11EF731","parts":{"hash":"79F178D8048D1E602667A7A2D051B9C91CA1CDCB275C48796871522D1B9A2FA0","total":1}},"height":11,"pol_round":-1,"round":0,"signature":"QWGVEIvWV9f8WZPjwsfNC2c/bQMFD9AKMDBov9nqziAvEoO2CQAxXghBMcT43CrpJblOyWFPXJ+rDo2LGIdEBQ==","timestamp":"2022-10-26T15:28:47.629325822Z"}
3:28PM INF received complete proposal block hash=1ADA14F58AEA9B91CF73826132999F7998997F4BCB0E361E07C5D938D11EF731 height=11 module=consensus
3:28PM INF finalizing commit of block hash=1ADA14F58AEA9B91CF73826132999F7998997F4BCB0E361E07C5D938D11EF731 height=11 module=consensus num_txs=0 root=F300300EB50186FEE1CB9897C8F8E597307644D91AD5009548EDAE6803200EFC
3:28PM INF minted coins from module account amount=20stake from=mint module=x/bank
3:28PM INF executed block height=11 module=state num_invalid_txs=0 num_valid_txs=0
3:28PM INF commit synced commit=436F6D6D697449447B5B313938203330203520393520323520313635203234312031393420323120313839203833203735203335203431203131322034352034362032313820323331203620313033203437203833203232382032333820383920313537203231352031323020323335203134372031375D3A427D
3:28PM INF committed state app_hash=C61E055F19A5F1C215BD534B2329702D2EDAE706672F53E4EE599DD778EB9311 height=11 module=state num_txs=0
3:28PM INF indexed block height=11 module=txindex
3:28PM INF Ensure peers module=pex numDialing=0 numInPeers=0 numOutPeers=0 numToDial=10
3:28PM INF No addresses to dial. Falling back to seeds module=pex
3:28PM INF Timed out dur=4994.889622 height=12 module=consensus round=0 step=1
3:28PM INF received proposal module=consensus proposal={"Type":32,"block_id":{"hash":"268E630FCF617E36EF0D0B2B5AE24866564CCD2D6E559D462780940EDB9EE041","parts":{"hash":"98D1D21882197AE6F386BDA0F3CEC12553A73DF2222EC0BD28600514BDBC24A7","total":1}},"height":12,"pol_round":-1,"round":0,"signature":"8dBTjs7LEd6buT0qaawTCkTn2VTL2t+EcxTqWTM7Gy18UqsDXgWeIkX26dBOOdfDZdpppAED2EYCr9MxyOd0Cg==","timestamp":"2022-10-26T15:28:52.639390418Z"}
3:28PM INF received complete proposal block hash=268E630FCF617E36EF0D0B2B5AE24866564CCD2D6E559D462780940EDB9EE041 height=12 module=consensus
3:28PM INF finalizing commit of block hash=268E630FCF617E36EF0D0B2B5AE24866564CCD2D6E559D462780940EDB9EE041 height=12 module=consensus num_txs=0 root=C61E055F19A5F1C215BD534B2329702D2EDAE706672F53E4EE599DD778EB9311
3:28PM INF minted coins from module account amount=20stake from=mint module=x/bank
3:28PM INF executed block height=12 module=state num_invalid_txs=0 num_valid_txs=0
3:28PM INF commit synced commit=436F6D6D697449447B5B3130332033332033382032362031373620383020333920323136203130322034332031353420323237203136322031313420323035203133382031333320313631203137322034362038302031323920323531203337203633203134372031383420313433203220313331203234302031395D3A437D
3:28PM INF committed state app_hash=6721261AB05027D8662B9AE3A272CD8A85A1AC2E5081FB253F93B88F0283F013 height=12 module=state num_txs=0
3:28PM INF indexed block height=12 module=txindex
3:28PM INF Timed out dur=4994.658372 height=13 module=consensus round=0 step=1
3:28PM INF received proposal module=consensus proposal={"Type":32,"block_id":{"hash":"6D7869987CAAD871841BCCF9C7855F5B4E9C4B812BEC132D623F4363672FFF57","parts":{"hash":"527C4770AFBE6A13B4AFE52B43BCDCE6AC23004B8F768A81136256244D45B3D8","total":1}},"height":13,"pol_round":-1,"round":0,"signature":"3Sio6RK+EqndCt3jJHJtuiesDFz0UheuMd+8QOFmA4h2BLqvB5FowIfLYzP2lckJjXc3bKKcWLI0EiVBFwHPDQ==","timestamp":"2022-10-26T15:28:57.65034847Z"}
3:28PM INF received complete proposal block hash=6D7869987CAAD871841BCCF9C7855F5B4E9C4B812BEC132D623F4363672FFF57 height=13 module=consensus
3:28PM INF finalizing commit of block hash=6D7869987CAAD871841BCCF9C7855F5B4E9C4B812BEC132D623F4363672FFF57 height=13 module=consensus num_txs=0 root=6721261AB05027D8662B9AE3A272CD8A85A1AC2E5081FB253F93B88F0283F013
3:28PM INF minted coins from module account amount=20stake from=mint module=x/bank
3:28PM INF executed block height=13 module=state num_invalid_txs=0 num_valid_txs=0
3:28PM INF commit synced commit=436F6D6D697449447B5B3136382031383520313737203233342032303720383320383920313738203731203132372031393720373120313039203234322031303720313520313237203231203133312031393420323038203138352031393920313839203131203534203230382035352031333420313737203739203139305D3A447D
3:28PM INF committed state app_hash=A8B9B1EACF5359B2477FC5476DF26B0F7F1583C2D0B9C7BD0B36D03786B14FBE height=13 module=state num_txs=0
3:28PM INF indexed block height=13 module=txindex
3:29PM INF Timed out dur=4996.848784 height=14 module=consensus round=0 step=1
3:29PM INF received proposal module=consensus proposal={"Type":32,"block_id":{"hash":"A41A97F9B8FA827E4E0C801504BC087B99125C90FC1C564039BAC9E04361B0F0","parts":{"hash":"3F246E54976E56230C6DB9305D9B0E50618C6CCE26292F06A64996CD55AB2771","total":1}},"height":14,"pol_round":-1,"round":0,"signature":"aTJf8L1VhLOshLAJtSvTyk2BskX9SEm2aT7BdYuyDWF5doV4Tz8S3Xb2YaRrsyW2vNOLoWp1v5GsNQzgAF3BDA==","timestamp":"2022-10-26T15:29:02.660238381Z"}
3:29PM INF received complete proposal block hash=A41A97F9B8FA827E4E0C801504BC087B99125C90FC1C564039BAC9E04361B0F0 height=14 module=consensus
3:29PM INF finalizing commit of block hash=A41A97F9B8FA827E4E0C801504BC087B99125C90FC1C564039BAC9E04361B0F0 height=14 module=consensus num_txs=0 root=A8B9B1EACF5359B2477FC5476DF26B0F7F1583C2D0B9C7BD0B36D03786B14FBE
3:29PM INF minted coins from module account amount=20stake from=mint module=x/bank
3:29PM INF executed block height=14 module=state num_invalid_txs=0 num_valid_txs=0
3:29PM INF commit synced commit=436F6D6D697449447B5B3130312039342036312032313620343420313938203136322031353820323434203234342036332035352032323120383320313735203235352033312031383520313232203337203133322031303020323239203231372031393820383920313134203134332031393520313030203139352031345D3A457D
3:29PM INF committed state app_hash=655E3DD82CC6A29EF4F43F37DD53AFFF1FB97A258464E5D9C659728FC364C30E height=14 module=state num_txs=0
3:29PM INF indexed block height=14 module=txindex
3:29PM INF Timed out dur=4995.360597 height=15 module=consensus round=0 step=1
3:29PM INF received proposal module=consensus proposal={"Type":32,"block_id":{"hash":"10B935FAB2E2A2A50EF8FEDA910B330707AAB2E53539E01904A76778054C6A73","parts":{"hash":"AFB39ACACB764D23EF4A87D25FCDC69A1FAB0E440B22052A40683A0D1AF15A78","total":1}},"height":15,"pol_round":-1,"round":0,"signature":"Y0uI1Ahg13Boy7ZcDYk60BNGl6B5+ByF9DYbHHElo8x56eRVPyFRfcIK0ALJTReUnyQpA+aM1/EQMVhY/ys+CA==","timestamp":"2022-10-26T15:29:07.672532288Z"}
3:29PM INF received complete proposal block hash=10B935FAB2E2A2A50EF8FEDA910B330707AAB2E53539E01904A76778054C6A73 height=15 module=consensus
3:29PM INF finalizing commit of block hash=10B935FAB2E2A2A50EF8FEDA910B330707AAB2E53539E01904A76778054C6A73 height=15 module=consensus num_txs=0 root=655E3DD82CC6A29EF4F43F37DD53AFFF1FB97A258464E5D9C659728FC364C30E
3:29PM ERR UPGRADE "v045-to-v046" NEEDED at height: 15:
3:29PM ERR CONSENSUS FAILURE!!! err="UPGRADE \"v045-to-v046\" NEEDED at height: 15: " module=consensus stack="goroutine 136 [running]:\nruntime/debug.Stack()\n\truntime/debug/stack.go:24 +0x64\ngithub.com/tendermint/tendermint/consensus.(*State).receiveRoutine.func2()\n\tgithub.com/tendermint/tendermint@v0.34.19/consensus/state.go:727 +0x44\npanic({0x148cdc0, 0x4000cdc360})\n\truntime/panic.go:884 +0x20c\ngithub.com/cosmos/cosmos-sdk/x/upgrade.BeginBlocker({{_, _}, _, {_, _}, {_, _}, _, {_, _}}, ...)\n\tgithub.com/cosmos/cosmos-sdk/x/upgrade/abci.go:54 +0x880\ngithub.com/cosmos/cosmos-sdk/x/upgrade.AppModule.BeginBlock(...)\n\tgithub.com/cosmos/cosmos-sdk/x/upgrade/module.go:130\ngithub.com/cosmos/cosmos-sdk/types/module.(*Manager).BeginBlock(_, {{0x1b76e50, 0x4000040098}, {0x1b83b00, 0x4002e147c0}, {{0xb, 0x0}, {0x4000e5cdcc, 0x4}, 0xf, ...}, ...}, ...)\n\tgithub.com/cosmos/cosmos-sdk/types/module/module.go:465 +0x2cc\ngithub.com/cosmos/cosmos-sdk/simapp.(*SimApp).BeginBlocker(_, {{0x1b76e50, 0x4000040098}, {0x1b83b00, 0x4002e147c0}, {{0xb, 0x0}, {0x4000e5cdcc, 0x4}, 0xf, ...}, ...}, ...)\n\tgithub.com/cosmos/cosmos-sdk/simapp/app.go:419 +0x68\ngithub.com/cosmos/cosmos-sdk/baseapp.(*BaseApp).BeginBlock(_, {{0x4002ec6660, 0x20, 0x20}, {{0xb, 0x0}, {0x4000e5cdcc, 0x4}, 0xf, {0x27c5608f, ...}, ...}, ...})\n\tgithub.com/cosmos/cosmos-sdk/baseapp/abci.go:194 +0x744\ngithub.com/tendermint/tendermint/abci/client.(*localClient).BeginBlockSync(_, {{0x4002ec6660, 0x20, 0x20}, {{0xb, 0x0}, {0x4000e5cdcc, 0x4}, 0xf, {0x27c5608f, ...}, ...}, ...})\n\tgithub.com/tendermint/tendermint@v0.34.19/abci/client/local_client.go:280 +0x108\ngithub.com/tendermint/tendermint/proxy.(*appConnConsensus).BeginBlockSync(_, {{0x4002ec6660, 0x20, 0x20}, {{0xb, 0x0}, {0x4000e5cdcc, 0x4}, 0xf, {0x27c5608f, ...}, ...}, ...})\n\tgithub.com/tendermint/tendermint@v0.34.19/proxy/app_conn.go:81 +0x4c\ngithub.com/tendermint/tendermint/state.execBlockOnProxyApp({0x1b77ba8?, 0x4000f069c0}, {0x1b7d9d0, 0x4000ef8f60}, 0x4002c0e1e0, {0x1b82b00, 0x4000ef8300}, 0xe?)\n\tgithub.com/tendermint/tendermint@v0.34.19/state/execution.go:307 +0x2c4\ngithub.com/tendermint/tendermint/state.(*BlockExecutor).ApplyBlock(_, {{{0xb, 0x0}, {0x40014c2960, 0x8}}, {0x40014c2968, 0x4}, 0x1, 0xe, {{0x4002c09f00, ...}, ...}, ...}, ...)\n\tgithub.com/tendermint/tendermint@v0.34.19/state/execution.go:140 +0xf0\ngithub.com/tendermint/tendermint/consensus.(*State).finalizeCommit(0x4000c50000, 0xf)\n\tgithub.com/tendermint/tendermint@v0.34.19/consensus/state.go:1655 +0x83c\ngithub.com/tendermint/tendermint/consensus.(*State).tryFinalizeCommit(0x4000c50000, 0xf)\n\tgithub.com/tendermint/tendermint@v0.34.19/consensus/state.go:1564 +0x29c\ngithub.com/tendermint/tendermint/consensus.(*State).enterCommit.func1()\n\tgithub.com/tendermint/tendermint@v0.34.19/consensus/state.go:1499 +0x90\ngithub.com/tendermint/tendermint/consensus.(*State).enterCommit(0x4000c50000, 0xf, 0x0)\n\tgithub.com/tendermint/tendermint@v0.34.19/consensus/state.go:1537 +0xa74\ngithub.com/tendermint/tendermint/consensus.(*State).addVote(0x4000c50000, 0x4002b26c80, {0x0, 0x0})\n\tgithub.com/tendermint/tendermint@v0.34.19/consensus/state.go:2151 +0x16a4\ngithub.com/tendermint/tendermint/consensus.(*State).tryAddVote(0x4000c50000, 0x4002b26c80, {0x0?, 0x47eae4?})\n\tgithub.com/tendermint/tendermint@v0.34.19/consensus/state.go:1949 +0x28\ngithub.com/tendermint/tendermint/consensus.(*State).handleMsg(0x4000c50000, {{0x1b62d40?, 0x40039da608?}, {0x0?, 0x0?}})\n\tgithub.com/tendermint/tendermint@v0.34.19/consensus/state.go:856 +0x108\ngithub.com/tendermint/tendermint/consensus.(*State).receiveRoutine(0x4000c50000, 0x0)\n\tgithub.com/tendermint/tendermint@v0.34.19/consensus/state.go:783 +0x374\ncreated by github.com/tendermint/tendermint/consensus.(*State).OnStart\n\tgithub.com/tendermint/tendermint@v0.34.19/consensus/state.go:379 +0xf4\n"
3:29PM INF Stopping baseWAL service impl={"Logger":{}} module=consensus wal=/home/ansheng.linux/.simapp/data/cs.wal/wal
3:29PM INF Stopping Group service impl={"Dir":"/home/ansheng.linux/.simapp/data/cs.wal","Head":{"ID":"iuUlP0SIoXyK:/home/ansheng.linux/.simapp/data/cs.wal/wal","Path":"/home/ansheng.linux/.simapp/data/cs.wal/wal"},"ID":"group:iuUlP0SIoXyK:/home/ansheng.linux/.simapp/data/cs.wal/wal","Logger":{}} module=consensus wal=/home/ansheng.linux/.simapp/data/cs.wal/wal
3:29PM INF daemon shutting down in an attempt to restart module=cosmovisor
3:29PM INF starting to take backup of data directory backup start time=2022-10-26T15:29:07Z module=cosmovisor
3:29PM INF backup completed backup completion time=2022-10-26T15:29:07Z backup saved at=/home/ansheng.linux/.simapp/data-backup-2022-10-26 module=cosmovisor time taken to complete backup=0.937597
3:29PM INF pre-upgrade command does not exist. continuing the upgrade. module=cosmovisor
3:29PM INF upgrade detected, relaunching app=simd module=cosmovisor
3:29PM INF running app args=["start","--home","/home/ansheng.linux/.simapp"] module=cosmovisor path=/home/ansheng.linux/.simapp/cosmovisor/upgrades/v045-to-v046/bin/simd
3:29PM INF starting ABCI with Tendermint
3:29PM INF Starting multiAppConn service impl=multiAppConn module=proxy
3:29PM INF Starting localClient service connection=query impl=localClient module=abci-client
3:29PM INF Starting localClient service connection=snapshot impl=localClient module=abci-client
3:29PM INF Starting localClient service connection=mempool impl=localClient module=abci-client
3:29PM INF Starting localClient service connection=consensus impl=localClient module=abci-client
3:29PM INF Starting EventBus service impl=EventBus module=events
3:29PM INF Starting PubSub service impl=PubSub module=pubsub
3:29PM INF Starting IndexerService service impl=IndexerService module=txindex
3:29PM INF ABCI Handshake App Info hash="e^=�,Ƣ���?7�S��\x1f�z%�d���Yr��d�\x0e" height=14 module=consensus protocol-version=0 software-version=0.45.0
3:29PM INF ABCI Replay Blocks appHeight=14 module=consensus stateHeight=14 storeHeight=15
3:29PM INF Replay last block using real app module=consensus
3:29PM ERR UPGRADE "v045-to-v046" NEEDED at height: 15:
panic: UPGRADE "v045-to-v046" NEEDED at height: 15:

goroutine 1 [running]:
github.com/cosmos/cosmos-sdk/x/upgrade.BeginBlocker({{_, _}, _, {_, _}, {_, _}, _, {_, _}}, ...)
    github.com/cosmos/cosmos-sdk/x/upgrade/abci.go:54 +0x880
github.com/cosmos/cosmos-sdk/x/upgrade.AppModule.BeginBlock(...)
    github.com/cosmos/cosmos-sdk/x/upgrade/module.go:130
github.com/cosmos/cosmos-sdk/types/module.(*Manager).BeginBlock(_, {{0x1b5e7f0, 0x4000040098}, {0x1b6b400, 0x4000471480}, {{0xb, 0x0}, {0x4001110430, 0x4}, 0xf, ...}, ...}, ...)
    github.com/cosmos/cosmos-sdk/types/module/module.go:478 +0x2cc
github.com/cosmos/cosmos-sdk/simapp.(*SimApp).BeginBlocker(_, {{0x1b5e7f0, 0x4000040098}, {0x1b6b400, 0x4000471480}, {{0xb, 0x0}, {0x4001110430, 0x4}, 0xf, ...}, ...}, ...)
    github.com/cosmos/cosmos-sdk/simapp/app.go:433 +0x68
github.com/cosmos/cosmos-sdk/baseapp.(*BaseApp).BeginBlock(_, {{0x400117bac0, 0x20, 0x20}, {{0xb, 0x0}, {0x4001110430, 0x4}, 0xf, {0x27c5608f, ...}, ...}, ...})
    github.com/cosmos/cosmos-sdk/baseapp/abci.go:194 +0x744
github.com/tendermint/tendermint/abci/client.(*localClient).BeginBlockSync(_, {{0x400117bac0, 0x20, 0x20}, {{0xb, 0x0}, {0x4001110430, 0x4}, 0xf, {0x27c5608f, ...}, ...}, ...})
    github.com/tendermint/tendermint@v0.34.14/abci/client/local_client.go:280 +0x108
github.com/tendermint/tendermint/proxy.(*appConnConsensus).BeginBlockSync(_, {{0x400117bac0, 0x20, 0x20}, {{0xb, 0x0}, {0x4001110430, 0x4}, 0xf, {0x27c5608f, ...}, ...}, ...})
    github.com/tendermint/tendermint@v0.34.14/proxy/app_conn.go:81 +0x4c
github.com/tendermint/tendermint/state.execBlockOnProxyApp({0x1b5f4a0?, 0x400007dc20}, {0x1b652d0, 0x4000cdd740}, 0x400003e1e0, {0x1b69950, 0x4000cdcb00}, 0xe?)
    github.com/tendermint/tendermint@v0.34.14/state/execution.go:307 +0x2c4
github.com/tendermint/tendermint/state.(*BlockExecutor).ApplyBlock(_, {{{0xb, 0x0}, {0x4000476ef8, 0x8}}, {0x4000476f50, 0x4}, 0x1, 0xe, {{0x4000c23660, ...}, ...}, ...}, ...)
    github.com/tendermint/tendermint@v0.34.14/state/execution.go:140 +0xf0
github.com/tendermint/tendermint/consensus.(*Handshaker).replayBlock(_, {{{0xb, 0x0}, {0x4000476ef8, 0x8}}, {0x4000476f50, 0x4}, 0x1, 0xe, {{0x4000c23660, ...}, ...}, ...}, ...)
    github.com/tendermint/tendermint@v0.34.14/consensus/replay.go:503 +0x198
github.com/tendermint/tendermint/consensus.(*Handshaker).ReplayBlocks(_, {{{0xb, 0x0}, {0x4000476ef8, 0x8}}, {0x4000476f50, 0x4}, 0x1, 0xe, {{0x4000c23660, ...}, ...}, ...}, ...)
    github.com/tendermint/tendermint@v0.34.14/consensus/replay.go:416 +0x600
github.com/tendermint/tendermint/consensus.(*Handshaker).Handshake(0x4000e75e10, {0x1b6bf68, 0x4000c5c820})
    github.com/tendermint/tendermint@v0.34.14/consensus/replay.go:268 +0x3a0
github.com/tendermint/tendermint/node.doHandshake({_, _}, {{{0xb, 0x0}, {0x4000476ef8, 0x8}}, {0x4000476f50, 0x4}, 0x1, 0xe, ...}, ...)
    github.com/tendermint/tendermint@v0.34.14/node/node.go:325 +0x11c
github.com/tendermint/tendermint/node.NewNode(0x4000d988c0, {0x1b5b560, 0x4000c61220}, 0x4000d3a530, {0x1b4aa00, 0x400000f170}, 0x1b4a520?, 0x4000dfbb00?, 0x4000d3a6b0, {0x1b5f4a0, ...}, ...)
    github.com/tendermint/tendermint@v0.34.14/node/node.go:733 +0x3dc
github.com/cosmos/cosmos-sdk/server.startInProcess(_, {{0x0, 0x0, 0x0}, {0x1b75fc0, 0x4000c5f020}, {0x4000040dd0, 0x4}, {0x1b63230, 0x4000e2d9f0}, ...}, ...)
    github.com/cosmos/cosmos-sdk/server/start.go:263 +0x598
github.com/cosmos/cosmos-sdk/server.StartCmd.func2(0x40003c0500?, {0x400046d880?, 0x0?, 0x2?})
    github.com/cosmos/cosmos-sdk/server/start.go:129 +0x11c
github.com/spf13/cobra.(*Command).execute(0x40003c0500, {0x400046d860, 0x2, 0x2})
    github.com/spf13/cobra@v1.2.1/command.go:856 +0x4dc
github.com/spf13/cobra.(*Command).ExecuteC(0x4000d0aa00)
    github.com/spf13/cobra@v1.2.1/command.go:974 +0x360
github.com/spf13/cobra.(*Command).Execute(...)
    github.com/spf13/cobra@v1.2.1/command.go:902
github.com/spf13/cobra.(*Command).ExecuteContext(...)
    github.com/spf13/cobra@v1.2.1/command.go:895
github.com/cosmos/cosmos-sdk/server/cmd.Execute(0x4000062768?, {0x4000c23a60, 0x1b})
    github.com/cosmos/cosmos-sdk/server/cmd/execute.go:36 +0x288
main.main()
    github.com/cosmos/cosmos-sdk/simapp/simd/main.go:15 +0x38
Error: exit status 2
3:29PM ERR error="exit status 2" module=cosmovisor

The content log of running the upgrade script is as follows.

$ bash upgrade-proposal.sh
HEAD is now at b6c77e6c8 chore: release v0.45 changelog (#10964)
HEAD is now at b6c77e6c8 chore: release v0.45 changelog (#10964)
go build -mod=readonly -tags "netgo ledger" -ldflags '-X github.com/cosmos/cosmos-sdk/version.Name=sim -X github.com/cosmos/cosmos-sdk/version.AppName=simd -X github.com/cosmos/cosmos-sdk/version.Version=0.45.0 -X github.com/cosmos/cosmos-sdk/version.Commit=b6c77e6c819f8a51166649eaef125d1bfb276f04 -X "github.com/cosmos/cosmos-sdk/version.BuildTags=netgo ledger," -X github.com/tendermint/tendermint/version.TMCoreSemVer=v0.34.14 -w -s' -trimpath -o /home/ansheng.linux/workspaces/cosmos/simapp/build/ ./...
code: 0
codespace: ""
data: ""
events: []
gas_used: "0"
gas_wanted: "0"
height: "0"
info: ""
logs: []
raw_log: '[]'
timestamp: ""
tx: null
txhash: 6FE18334E7FB5B59509BCFC04311A710A44CEF1C3A81744B2665A30E40BDA571
code: 0
codespace: ""
data: ""
events: []
gas_used: "0"
gas_wanted: "0"
height: "0"
info: ""
logs: []
raw_log: '[]'
timestamp: ""
tx: null
txhash: B97671DCE3A9510024F209E355A232E1E2FC1C516B3A8BD0598C4E8847AA3CD6
code: 0
codespace: ""
data: ""
events: []
gas_used: "0"
gas_wanted: "0"
height: "0"
info: ""
logs: []
raw_log: '[]'
timestamp: ""
tx: null
txhash: 59B8CCBB51776116C94B52181EE820482010EF5F5562F57597BBAC54093C951C
yihuang commented 1 year ago

it don't start the new binary, if it's supposed to auto download, maybe check the download urls in the proposal metadata.

aansheng commented 1 year ago
$ ignite version
Ignite CLI version:     development
Ignite CLI build date:  2022-10-26T00:50:35Z
Ignite CLI source hash: e5defbdda8432550cd9e2e0e87ce7b19d86a1c0f
Cosmos SDK version:     v0.46.3
Your OS:                darwin
Your arch:              amd64
Your Node.js version:   v16.18.0
Your go version:        go version go1.19.2 darwin/amd64
Your uname -a:          Darwin MacBook-Pro.lan 22.1.0 Darwin Kernel Version 22.1.0: Sun Oct  9 20:15:09 PDT 2022; root:xnu-8792.41.9~2/RELEASE_ARM64_T6000 x86_64
Your cwd:               /Users/xxx/workspaces/cosmos/upgrade
Is on Gitpod:           false

I modified the script to remove cosmovisor

$ vim setup-node.sh
#!/bin/bash  

rm -fr $HOME/.simapp

cd simapp_v1 && ignite chain build -o build

./build/simappd config chain-id test
./build/simappd config keyring-backend test

./build/simappd init test --chain-id test

cat <<< $(jq '.app_state.gov.voting_params.voting_period = "20s"' $HOME/.simapp/config/genesis.json) > $HOME/.simapp/config/genesis.json

./build/simappd keys add validator
./build/simappd add-genesis-account validator 1000000000stake --keyring-backend test
./build/simappd gentx validator 1000000stake --chain-id test
./build/simappd collect-gentxs

./build/simappd start
$ bash setup-node.sh
Cosmos SDK's version is: stargate - v0.46.3

📦 Installing dependencies...
🛠  Building the blockchain...
🗃  Binary built at the path: build/simappd
{"app_message":{"auth":{"accounts":[],"params":{"max_memo_characters":"256","sig_verify_cost_ed25519":"590","sig_verify_cost_secp256k1":"1000","tx_sig_limit":"7","tx_size_cost_per_byte":"10"}},"authz":{"authorization":[]},"bank":{"balances":[],"denom_metadata":[],"params":{"default_send_enabled":true,"send_enabled":[]},"supply":[]},"capability":{"index":"1","owners":[]},"crisis":{"constant_fee":{"amount":"1000","denom":"stake"}},"distribution":{"delegator_starting_infos":[],"delegator_withdraw_infos":[],"fee_pool":{"community_pool":[]},"outstanding_rewards":[],"params":{"base_proposer_reward":"0.010000000000000000","bonus_proposer_reward":"0.040000000000000000","community_tax":"0.020000000000000000","withdraw_addr_enabled":true},"previous_proposer":"","validator_accumulated_commissions":[],"validator_current_rewards":[],"validator_historical_rewards":[],"validator_slash_events":[]},"evidence":{"evidence":[]},"feegrant":{"allowances":[]},"genutil":{"gen_txs":[]},"gov":{"deposit_params":{"max_deposit_period":"172800s","min_deposit":[{"amount":"10000000","denom":"stake"}]},"deposits":[],"proposals":[],"starting_proposal_id":"1","tally_params":{"quorum":"0.334000000000000000","threshold":"0.500000000000000000","veto_threshold":"0.334000000000000000"},"votes":[],"voting_params":{"voting_period":"172800s"}},"group":{"group_members":[],"group_policies":[],"group_policy_seq":"0","group_seq":"0","groups":[],"proposal_seq":"0","proposals":[],"votes":[]},"ibc":{"channel_genesis":{"ack_sequences":[],"acknowledgements":[],"channels":[],"commitments":[],"next_channel_sequence":"0","receipts":[],"recv_sequences":[],"send_sequences":[]},"client_genesis":{"clients":[],"clients_consensus":[],"clients_metadata":[],"create_localhost":false,"next_client_sequence":"0","params":{"allowed_clients":["06-solomachine","07-tendermint"]}},"connection_genesis":{"client_connection_paths":[],"connections":[],"next_connection_sequence":"0","params":{"max_expected_time_per_block":"30000000000"}}},"interchainaccounts":{"controller_genesis_state":{"active_channels":[],"interchain_accounts":[],"params":{"controller_enabled":true},"ports":[]},"host_genesis_state":{"active_channels":[],"interchain_accounts":[],"params":{"allow_messages":[],"host_enabled":true},"port":"icahost"}},"mint":{"minter":{"annual_provisions":"0.000000000000000000","inflation":"0.130000000000000000"},"params":{"blocks_per_year":"6311520","goal_bonded":"0.670000000000000000","inflation_max":"0.200000000000000000","inflation_min":"0.070000000000000000","inflation_rate_change":"0.130000000000000000","mint_denom":"stake"}},"params":null,"simapp":{"params":{}},"slashing":{"missed_blocks":[],"params":{"downtime_jail_duration":"600s","min_signed_per_window":"0.500000000000000000","signed_blocks_window":"100","slash_fraction_double_sign":"0.050000000000000000","slash_fraction_downtime":"0.010000000000000000"},"signing_infos":[]},"staking":{"delegations":[],"exported":false,"last_total_power":"0","last_validator_powers":[],"params":{"bond_denom":"stake","historical_entries":10000,"max_entries":7,"max_validators":100,"min_commission_rate":"0.000000000000000000","unbonding_time":"1814400s"},"redelegations":[],"unbonding_delegations":[],"validators":[]},"transfer":{"denom_traces":[],"params":{"receive_enabled":true,"send_enabled":true},"port_id":"transfer"},"upgrade":{},"vesting":{}},"chain_id":"test","gentxs_dir":"","moniker":"test","node_id":"039171de6337f2f51cf69896f605d84d7e82cec5"}

- address: cosmos1p5pqgmpnrl8k0pah3hpzg098mafqy7xk4vs7gt
  name: validator
  pubkey: '{"@type":"/cosmos.crypto.secp256k1.PubKey","key":"AtfzFaCymbWSKnCYm118Q6nh3Bi3gBJ8TGS/5mulL7/p"}'
  type: local

**Important** write this mnemonic phrase in a safe place.
It is the only way to recover your account if you ever forget your password.

favorite pyramid bubble husband rug sock produce skate soft federal coral diesel easy radio damp sniff syrup burst pipe trouble sting deal rabbit melt

Genesis transaction written to "/Users/ansheng/.simapp/config/gentx/gentx-039171de6337f2f51cf69896f605d84d7e82cec5.json"
{"app_message":{"auth":{"accounts":[{"@type":"/cosmos.auth.v1beta1.BaseAccount","account_number":"0","address":"cosmos1p5pqgmpnrl8k0pah3hpzg098mafqy7xk4vs7gt","pub_key":null,"sequence":"0"}],"params":{"max_memo_characters":"256","sig_verify_cost_ed25519":"590","sig_verify_cost_secp256k1":"1000","tx_sig_limit":"7","tx_size_cost_per_byte":"10"}},"authz":{"authorization":[]},"bank":{"balances":[{"address":"cosmos1p5pqgmpnrl8k0pah3hpzg098mafqy7xk4vs7gt","coins":[{"amount":"1000000000","denom":"stake"}]}],"denom_metadata":[],"params":{"default_send_enabled":true,"send_enabled":[]},"supply":[]},"capability":{"index":"1","owners":[]},"crisis":{"constant_fee":{"amount":"1000","denom":"stake"}},"distribution":{"delegator_starting_infos":[],"delegator_withdraw_infos":[],"fee_pool":{"community_pool":[]},"outstanding_rewards":[],"params":{"base_proposer_reward":"0.010000000000000000","bonus_proposer_reward":"0.040000000000000000","community_tax":"0.020000000000000000","withdraw_addr_enabled":true},"previous_proposer":"","validator_accumulated_commissions":[],"validator_current_rewards":[],"validator_historical_rewards":[],"validator_slash_events":[]},"evidence":{"evidence":[]},"feegrant":{"allowances":[]},"genutil":{"gen_txs":[{"auth_info":{"fee":{"amount":[],"gas_limit":"200000","granter":"","payer":""},"signer_infos":[{"mode_info":{"single":{"mode":"SIGN_MODE_DIRECT"}},"public_key":{"@type":"/cosmos.crypto.secp256k1.PubKey","key":"AtfzFaCymbWSKnCYm118Q6nh3Bi3gBJ8TGS/5mulL7/p"},"sequence":"0"}],"tip":null},"body":{"extension_options":[],"memo":"039171de6337f2f51cf69896f605d84d7e82cec5@192.168.2.221:26656","messages":[{"@type":"/cosmos.staking.v1beta1.MsgCreateValidator","commission":{"max_change_rate":"0.010000000000000000","max_rate":"0.200000000000000000","rate":"0.100000000000000000"},"delegator_address":"cosmos1p5pqgmpnrl8k0pah3hpzg098mafqy7xk4vs7gt","description":{"details":"","identity":"","moniker":"test","security_contact":"","website":""},"min_self_delegation":"1","pubkey":{"@type":"/cosmos.crypto.ed25519.PubKey","key":"n4s5mAs0a+PBVkrfcQSQJt8JJcdeigMrwyAQjaAqKE0="},"validator_address":"cosmosvaloper1p5pqgmpnrl8k0pah3hpzg098mafqy7xkscytyc","value":{"amount":"1000000","denom":"stake"}}],"non_critical_extension_options":[],"timeout_height":"0"},"signatures":["DEvmlxU8J3OMmOLd/bFNnheM4uBB7JHKP3XdaWc6V80bWTtJFVFlnEzq1DvxD83bjDZScGAFPGqhOM77ROjgsg=="]}]},"gov":{"deposit_params":{"max_deposit_period":"172800s","min_deposit":[{"amount":"10000000","denom":"stake"}]},"deposits":[],"proposals":[],"starting_proposal_id":"1","tally_params":{"quorum":"0.334000000000000000","threshold":"0.500000000000000000","veto_threshold":"0.334000000000000000"},"votes":[],"voting_params":{"voting_period":"20s"}},"group":{"group_members":[],"group_policies":[],"group_policy_seq":"0","group_seq":"0","groups":[],"proposal_seq":"0","proposals":[],"votes":[]},"ibc":{"channel_genesis":{"ack_sequences":[],"acknowledgements":[],"channels":[],"commitments":[],"next_channel_sequence":"0","receipts":[],"recv_sequences":[],"send_sequences":[]},"client_genesis":{"clients":[],"clients_consensus":[],"clients_metadata":[],"create_localhost":false,"next_client_sequence":"0","params":{"allowed_clients":["06-solomachine","07-tendermint"]}},"connection_genesis":{"client_connection_paths":[],"connections":[],"next_connection_sequence":"0","params":{"max_expected_time_per_block":"30000000000"}}},"interchainaccounts":{"controller_genesis_state":{"active_channels":[],"interchain_accounts":[],"params":{"controller_enabled":true},"ports":[]},"host_genesis_state":{"active_channels":[],"interchain_accounts":[],"params":{"allow_messages":[],"host_enabled":true},"port":"icahost"}},"mint":{"minter":{"annual_provisions":"0.000000000000000000","inflation":"0.130000000000000000"},"params":{"blocks_per_year":"6311520","goal_bonded":"0.670000000000000000","inflation_max":"0.200000000000000000","inflation_min":"0.070000000000000000","inflation_rate_change":"0.130000000000000000","mint_denom":"stake"}},"params":null,"simapp":{"params":{}},"slashing":{"missed_blocks":[],"params":{"downtime_jail_duration":"600s","min_signed_per_window":"0.500000000000000000","signed_blocks_window":"100","slash_fraction_double_sign":"0.050000000000000000","slash_fraction_downtime":"0.010000000000000000"},"signing_infos":[]},"staking":{"delegations":[],"exported":false,"last_total_power":"0","last_validator_powers":[],"params":{"bond_denom":"stake","historical_entries":10000,"max_entries":7,"max_validators":100,"min_commission_rate":"0.000000000000000000","unbonding_time":"1814400s"},"redelegations":[],"unbonding_delegations":[],"validators":[]},"transfer":{"denom_traces":[],"params":{"receive_enabled":true,"send_enabled":true},"port_id":"transfer"},"upgrade":{},"vesting":{}},"chain_id":"test","gentxs_dir":"/Users/ansheng/.simapp/config/gentx","moniker":"test","node_id":"039171de6337f2f51cf69896f605d84d7e82cec5"}
12:55PM INF starting node with ABCI Tendermint in-process
12:55PM INF service start impl=multiAppConn module=proxy msg={}
12:55PM INF service start connection=query impl=localClient module=abci-client msg={}
12:55PM INF service start connection=snapshot impl=localClient module=abci-client msg={}
12:55PM INF service start connection=mempool impl=localClient module=abci-client msg={}
12:55PM INF service start connection=consensus impl=localClient module=abci-client msg={}
12:55PM INF service start impl=EventBus module=events msg={}
12:55PM INF service start impl=PubSub module=pubsub msg={}
12:55PM INF service start impl=IndexerService module=txindex msg={}
12:55PM INF ABCI Handshake App Info hash= height=0 module=consensus protocol-version=0 software-version=
12:55PM INF ABCI Replay Blocks appHeight=0 module=consensus stateHeight=0 storeHeight=0
12:55PM INF initializing blockchain state from genesis.json
12:55PM INF asserting crisis invariants inv=1/12 module=x/crisis name=gov/module-account
12:55PM INF asserting crisis invariants inv=2/12 module=x/crisis name=distribution/nonnegative-outstanding
12:55PM INF asserting crisis invariants inv=3/12 module=x/crisis name=distribution/can-withdraw
12:55PM INF asserting crisis invariants inv=4/12 module=x/crisis name=distribution/reference-count
12:55PM INF asserting crisis invariants inv=5/12 module=x/crisis name=distribution/module-account
12:55PM INF asserting crisis invariants inv=6/12 module=x/crisis name=staking/module-accounts
12:55PM INF asserting crisis invariants inv=7/12 module=x/crisis name=staking/nonnegative-power
12:55PM INF asserting crisis invariants inv=8/12 module=x/crisis name=staking/positive-delegation
12:55PM INF asserting crisis invariants inv=9/12 module=x/crisis name=staking/delegator-shares
12:55PM INF asserting crisis invariants inv=10/12 module=x/crisis name=bank/nonnegative-outstanding
12:55PM INF asserting crisis invariants inv=11/12 module=x/crisis name=bank/total-supply
12:55PM INF asserting crisis invariants inv=12/12 module=x/crisis name=group/Group-TotalWeight
12:55PM INF asserted all invariants duration=3.970375 height=0 module=x/crisis
12:55PM INF created new capability module=ibc name=ports/transfer
12:55PM INF port binded module=x/ibc/port port=transfer
12:55PM INF claimed capability capability=1 module=transfer name=ports/transfer
12:55PM INF created new capability module=ibc name=ports/icahost
12:55PM INF port binded module=x/ibc/port port=icahost
12:55PM INF claimed capability capability=2 module=icahost name=ports/icahost
12:55PM INF Completed ABCI Handshake - Tendermint and App are synced appHash= appHeight=0 module=consensus
12:55PM INF Version info block=11 p2p=8 tendermint_version=0.34.22
12:55PM INF This node is a validator addr=A523C0E00D54621EF0A6DA89E1599ECD49C17112 module=consensus pubKey=n4s5mAs0a+PBVkrfcQSQJt8JJcdeigMrwyAQjaAqKE0=
12:55PM INF P2P Node ID ID=039171de6337f2f51cf69896f605d84d7e82cec5 file=/Users/ansheng/.simapp/config/node_key.json module=p2p
12:55PM INF Adding persistent peers addrs=[] module=p2p
12:55PM INF Adding unconditional peer ids ids=[] module=p2p
12:55PM INF Add our address to book addr={"id":"039171de6337f2f51cf69896f605d84d7e82cec5","ip":"0.0.0.0","port":26656} book=/Users/ansheng/.simapp/config/addrbook.json module=p2p
12:55PM INF service start impl=Node msg={}
12:55PM INF Starting pprof server laddr=localhost:6060
12:55PM INF serve module=rpc-server msg={}
12:55PM INF service start impl="P2P Switch" module=p2p msg={}
12:55PM INF service start impl=BlockchainReactor module=blockchain msg={}
12:55PM INF service start impl=ConsensusReactor module=consensus msg={}
12:55PM INF Reactor  module=consensus waitSync=false
12:55PM INF service start impl=ConsensusState module=consensus msg={}
12:55PM INF service start impl=baseWAL module=consensus msg={} wal=/Users/ansheng/.simapp/data/cs.wal/wal
12:55PM INF service start impl=Group module=consensus msg={} wal=/Users/ansheng/.simapp/data/cs.wal/wal
12:55PM INF service start impl=TimeoutTicker module=consensus msg={}
12:55PM INF Searching for height height=1 max=0 min=0 module=consensus wal=/Users/ansheng/.simapp/data/cs.wal/wal
12:55PM INF Searching for height height=0 max=0 min=0 module=consensus wal=/Users/ansheng/.simapp/data/cs.wal/wal
12:55PM INF Found height=0 index=0 module=consensus wal=/Users/ansheng/.simapp/data/cs.wal/wal
12:55PM INF Catchup by replaying consensus messages height=1 module=consensus
12:55PM INF Replay: Done module=consensus
12:55PM INF service start impl=Evidence module=evidence msg={}
12:55PM INF service start impl=StateSync module=statesync msg={}
12:55PM INF service start impl=PEX module=pex msg={}
12:55PM INF service start book=/Users/ansheng/.simapp/config/addrbook.json impl=AddrBook module=p2p msg={}
12:55PM INF Saving AddrBook to file book=/Users/ansheng/.simapp/config/addrbook.json module=p2p size=0
12:55PM INF Ensure peers module=pex numDialing=0 numInPeers=0 numOutPeers=0 numToDial=10
12:55PM INF No addresses to dial. Falling back to seeds module=pex
12:55PM INF Timed out dur=4984.527 height=1 module=consensus round=0 step=1
12:55PM INF received proposal module=consensus proposal={"Type":32,"block_id":{"hash":"BBFBF3A00BFD1960ACE273119479B3AF4AC58F780E65CA7B0973CD21B943EF0A","parts":{"hash":"BC02D09F871E8DF52F69CF8F8315234904BD6ACDF255A34C90D5805E55F39647","total":1}},"height":1,"pol_round":-1,"round":0,"signature":"A2V/P/FnnDDTg+J59lkJmly5BfoAyUWhVNVR/aVXAPCTV84+0jccDsKSazyYryKIGf5MYJDlIiOtfojRnqPiDg==","timestamp":"2022-10-27T04:55:12.673096Z"}
12:55PM INF received complete proposal block hash=BBFBF3A00BFD1960ACE273119479B3AF4AC58F780E65CA7B0973CD21B943EF0A height=1 module=consensus
12:55PM INF finalizing commit of block hash={} height=1 module=consensus num_txs=0 root=E3B0C44298FC1C149AFBF4C8996FB92427AE41E4649B934CA495991B7852B855
12:55PM INF minted coins from module account amount=20stake from=mint module=x/bank
12:55PM INF executed block height=1 module=state num_invalid_txs=0 num_valid_txs=0
12:55PM INF commit synced commit=436F6D6D697449447B5B3232372032343120313437203130322032343020323039203734203433203139302034362031353320313937203431203132322031353420323038203135342033372031363020353520352031333020313838203131322039203633203135362032343920353320313132203631203132355D3A317D
12:55PM INF committed state app_hash=E3F19366F0D14A2BBE2E99C5297A9AD09A25A0370582BC70093F9CF935703D7D height=1 module=state num_txs=0
12:55PM INF indexed block exents height=1 module=txindex
12:55PM INF Timed out dur=4967.124 height=2 module=consensus round=0 step=1
12:55PM INF received proposal module=consensus proposal={"Type":32,"block_id":{"hash":"546655E8D7862FB8915D60B5D0AA1B6362F22BDAF7F6EB9D2F252D4A91902CF9","parts":{"hash":"8AA559B06B5DF3953399F05751C11105DD482EA926DDE0A1BBDADB1FB987F8CF","total":1}},"height":2,"pol_round":-1,"round":0,"signature":"cg3kQDHHgiIwj1HaDtl/hKUmbB+UDXLI/EIivHJ2Xe4CIKgTgaiSFGKpSZrN1t8gnE/IQmk8Rtu8/gd7Z7crAw==","timestamp":"2022-10-27T04:55:17.712227Z"}
12:55PM INF received complete proposal block hash=546655E8D7862FB8915D60B5D0AA1B6362F22BDAF7F6EB9D2F252D4A91902CF9 height=2 module=consensus
12:55PM INF finalizing commit of block hash={} height=2 module=consensus num_txs=1 root=E3F19366F0D14A2BBE2E99C5297A9AD09A25A0370582BC70093F9CF935703D7D
12:55PM INF minted coins from module account amount=20stake from=mint module=x/bank
12:55PM INF executed block height=2 module=state num_invalid_txs=0 num_valid_txs=1
12:55PM INF commit synced commit=436F6D6D697449447B5B32343720323820313439203134362032333520313336203337203233392031313720313832203133203435203136362031393420313020313620323920383320383120323038203134302031333220353620313520343920373620342033332032303220313136203133382036395D3A327D
12:55PM INF committed state app_hash=F71C9592EB8825EF75B60D2DA6C20A101D5351D08C84380F314C0421CA748A45 height=2 module=state num_txs=1
12:55PM INF indexed block exents height=2 module=txindex
12:55PM INF Timed out dur=4967.305 height=3 module=consensus round=0 step=1
12:55PM INF received proposal module=consensus proposal={"Type":32,"block_id":{"hash":"3D1573B83F3197FEB6E8E91E607D0E0B07C16834DA45993B21CC60A6D49227DD","parts":{"hash":"DF33BB9BD0601ED9912A14BC85EF7412702321B0342761969839DDE12E839D9B","total":1}},"height":3,"pol_round":-1,"round":0,"signature":"E+GqmvPb2ERHw+bE9U4EPRi308NTnPoKUNMA7EE2RmHpFOedkxfDO/1o1wkj9kWLfGcDQzu8Pqp6AcWTjAVvAQ==","timestamp":"2022-10-27T04:55:22.737928Z"}
12:55PM INF received complete proposal block hash=3D1573B83F3197FEB6E8E91E607D0E0B07C16834DA45993B21CC60A6D49227DD height=3 module=consensus
12:55PM INF finalizing commit of block hash={} height=3 module=consensus num_txs=0 root=F71C9592EB8825EF75B60D2DA6C20A101D5351D08C84380F314C0421CA748A45
12:55PM INF minted coins from module account amount=20stake from=mint module=x/bank
12:55PM INF executed block height=3 module=state num_invalid_txs=0 num_valid_txs=0
12:55PM INF commit synced commit=436F6D6D697449447B5B3538203138352031323020313938203637203534203136302038392035332031313620383020323420323135203231322032313620323020342032313520323034203233312033302032333120313039203439203636203832203139392034342035372031203135312039355D3A337D
12:55PM INF committed state app_hash=3AB978C64336A05935745018D7D4D81404D7CCE71EE76D314252C72C3901975F height=3 module=state num_txs=0
12:55PM INF indexed block exents height=3 module=txindex
12:55PM INF Timed out dur=4972.871 height=4 module=consensus round=0 step=1
12:55PM INF received proposal module=consensus proposal={"Type":32,"block_id":{"hash":"2FA47FFFB0D54F82089DA30E70BB2ABB5F16A09A965FE19C7C8DAFD69885AC5D","parts":{"hash":"96C0DF9A2E212634B10E87101EF4E6322EE876CAF6E7CA8440B5233614D6BF28","total":1}},"height":4,"pol_round":-1,"round":0,"signature":"ohQeE36BZnXHHDtLfo4Aci0rNrCeJYQyM7gqBfF8fO3ngFUOWz2GOAhmDfglHcDHEGc2WE5In/rPCKGQlWvFDA==","timestamp":"2022-10-27T04:55:27.760595Z"}
12:55PM INF received complete proposal block hash=2FA47FFFB0D54F82089DA30E70BB2ABB5F16A09A965FE19C7C8DAFD69885AC5D height=4 module=consensus
12:55PM INF finalizing commit of block hash={} height=4 module=consensus num_txs=1 root=3AB978C64336A05935745018D7D4D81404D7CCE71EE76D314252C72C3901975F
12:55PM INF minted coins from module account amount=20stake from=mint module=x/bank
12:55PM INF executed block height=4 module=state num_invalid_txs=0 num_valid_txs=1
12:55PM INF commit synced commit=436F6D6D697449447B5B323238203233362031343520313336203230203236203233352033203231352031313120313820313939203230312033203220313236203232372031322031373620313635203139342031353020363220332031343120313834203134342032352032303020323439203437203231375D3A347D
12:55PM INF committed state app_hash=E4EC9188141AEB03D76F12C7C903027EE30CB0A5C2963E038DB89019C8F92FD9 height=4 module=state num_txs=1
12:55PM INF indexed block exents height=4 module=txindex
12:55PM INF Timed out dur=4969.908 height=5 module=consensus round=0 step=1
12:55PM INF received proposal module=consensus proposal={"Type":32,"block_id":{"hash":"C54A65A79612547F24D5A5E1DB3E3A6CD82F1C7ABD0C041A7A38D2FEDEB2DE58","parts":{"hash":"E68FB1D333B06CA8EF396ABE41699C646755555B413B7A497EA64FAB2916011B","total":1}},"height":5,"pol_round":-1,"round":0,"signature":"wkiePVq65ziZx72HjvzyTUfzGclgXBDrhqArSIJWMo8qiSuyIJlIj3OOvXLQUORrI9Lrxk7+wIJPgo5Z+EizAA==","timestamp":"2022-10-27T04:55:32.784055Z"}
12:55PM INF received complete proposal block hash=C54A65A79612547F24D5A5E1DB3E3A6CD82F1C7ABD0C041A7A38D2FEDEB2DE58 height=5 module=consensus
12:55PM INF finalizing commit of block hash={} height=5 module=consensus num_txs=0 root=E4EC9188141AEB03D76F12C7C903027EE30CB0A5C2963E038DB89019C8F92FD9
12:55PM INF minted coins from module account amount=20stake from=mint module=x/bank
12:55PM INF executed block height=5 module=state num_invalid_txs=0 num_valid_txs=0
12:55PM INF commit synced commit=436F6D6D697449447B5B32333420323720313136203339203138342031333620313634203138362032352031363720313934203530203233203139203232302038203334203020313632203732203833203230322032323620393220313838203135362032353420313832203234372031323720313131203132325D3A357D
12:55PM INF committed state app_hash=EA1B7427B888A4BA19A7C2321713DC082200A24853CAE25CBC9CFEB6F77F6F7A height=5 module=state num_txs=0
12:55PM INF indexed block exents height=5 module=txindex
12:55PM INF Ensure peers module=pex numDialing=0 numInPeers=0 numOutPeers=0 numToDial=10
12:55PM INF No addresses to dial. Falling back to seeds module=pex
12:55PM INF Timed out dur=4971.042 height=6 module=consensus round=0 step=1
12:55PM INF received proposal module=consensus proposal={"Type":32,"block_id":{"hash":"57803C455CEAE4708316F57F3C7A61D1F4C5726332C789A077D242EF69B1739A","parts":{"hash":"797A177F286D30067D29EACC271879693EF86CC2A994D190BD0D552466365DF8","total":1}},"height":6,"pol_round":-1,"round":0,"signature":"TvXfOMxGDTe0cSDABPL06xq05jjOhV0UhJSuK829xJ1IbLGJjWuaNTWsuvUM7Wg2gIoNURwwUHLIzCpEbYprCA==","timestamp":"2022-10-27T04:55:37.81487Z"}
12:55PM INF received complete proposal block hash=57803C455CEAE4708316F57F3C7A61D1F4C5726332C789A077D242EF69B1739A height=6 module=consensus
12:55PM INF finalizing commit of block hash={} height=6 module=consensus num_txs=0 root=EA1B7427B888A4BA19A7C2321713DC082200A24853CAE25CBC9CFEB6F77F6F7A
12:55PM INF minted coins from module account amount=20stake from=mint module=x/bank
12:55PM INF proposal tallied module=x/gov proposal=1 results=passed
12:55PM INF executed block height=6 module=state num_invalid_txs=0 num_valid_txs=0
.....
$ vim upgrade-proposal.sh
#!/bin/bash

cd simapp_v2 && ignite chain build -o build

./build/simappd tx gov submit-legacy-proposal software-upgrade v1-to-v2 \
 --upgrade-height 15 \
 --title="Test Proposal" \
 --description="testing, testing, 1, 2, 3" \
 --no-validate=true \
 --deposit 10000000stake \
 --from validator \
 --chain-id test

sleep 5

./build/simappd tx gov vote 1 yes \
 --from validator \
 --yes \
 --chain-id test

Run the upgrade script

$ bash upgrade-proposal.sh
Cosmos SDK's version is: stargate - v0.46.3

📦 Installing dependencies...
🛠  Building the blockchain...
🗃  Binary built at the path: build/simappd
auth_info:
  fee:
    amount: []
    gas_limit: "200000"
    granter: ""
    payer: ""
  signer_infos: []
  tip: null
body:
  extension_options: []
  memo: ""
  messages:
  - '@type': /cosmos.gov.v1beta1.MsgSubmitProposal
    content:
      '@type': /cosmos.upgrade.v1beta1.SoftwareUpgradeProposal
      description: testing, testing, 1, 2, 3
      plan:
        height: "15"
        info: ""
        name: v1-to-v2
        time: "0001-01-01T00:00:00Z"
        upgraded_client_state: null
      title: Test Proposal
    initial_deposit:
    - amount: "10000000"
      denom: stake
    proposer: cosmos1p5pqgmpnrl8k0pah3hpzg098mafqy7xk4vs7gt
  non_critical_extension_options: []
  timeout_height: "0"
signatures: []
confirm transaction before signing and broadcasting [y/N]: y
code: 0
codespace: ""
data: ""
events: []
gas_used: "0"
gas_wanted: "0"
height: "0"
info: ""
logs: []
raw_log: '[]'
timestamp: ""
tx: null
txhash: 94A69861930C0BDF5E1D7CAC7AC6F0BD4A349C02C4997268D7C5BB3818098E6E

code: 0
codespace: ""
data: ""
events: []
gas_used: "0"
gas_wanted: "0"
height: "0"
info: ""
logs: []
raw_log: '[]'
timestamp: ""
tx: null
txhash: A6FB9D3A717B722582D6D9E526F74A69325EE1AD1F24D1C55D7AEF07386A8E2A

When the height is 15, it prompts that you need to upgrade

12:56PM ERR UPGRADE "v1-to-v2" NEEDED at height: 15:
12:56PM ERR CONSENSUS FAILURE!!! err="UPGRADE \"v1-to-v2\" NEEDED at height: 15: " module=consensus stack="goroutine 129 [running]:\nruntime/debug.Stack()\n\t/usr/local/go/src/runtime/debug/stack.go:24 +0x65\ngithub.com/tendermint/tendermint/consensus.(*State).receiveRoutine.func2()\n\t/Users/ansheng/Applications/go/pkg/mod/github.com/tendermint/tendermint@v0.34.22/consensus/state.go:727 +0x4c\npanic({0x101c25b40, 0xc000001f20})\n\t/usr/local/go/src/runtime/panic.go:884 +0x212\ngithub.com/cosmos/cosmos-sdk/x/upgrade.BeginBlocker({{0xc00021f050, 0x16}, 0xc00154ea20, {0x102d4a708, 0xc000f19de0}, {0x102d745d0, 0xc00138d990}, 0xc0005a23c0, {0x102d411a0, 0xc000fc6380}, ...}, ...)\n\t/Users/ansheng/Applications/go/pkg/mod/github.com/cosmos/cosmos-sdk@v0.46.3/x/upgrade/abci.go:56 +0xf94\ngithub.com/cosmos/cosmos-sdk/x/upgrade.AppModule.BeginBlock(...)\n\t/Users/ansheng/Applications/go/pkg/mod/github.com/cosmos/cosmos-sdk@v0.46.3/x/upgrade/module.go:134\ngithub.com/cosmos/cosmos-sdk/types/module.(*Manager).BeginBlock(_, {{0x102d647f0, 0xc0001a6008}, {0x102d766c0, 0xc001387f40}, {{0xb, 0x0}, {0xc00167e2ac, 0x4}, 0xf, ...}, ...}, ...)\n\t/Users/ansheng/Applications/go/pkg/mod/github.com/cosmos/cosmos-sdk@v0.46.3/types/module/module.go:484 +0x398\nsimapp/app.(*App).BeginBlocker(_, {{0x102d647f0, 0xc0001a6008}, {0x102d766c0, 0xc001387f40}, {{0xb, 0x0}, {0xc00167e2ac, 0x4}, 0xf, ...}, ...}, ...)\n\t/Users/ansheng/workspaces/cosmos/upgrade/simapp_v1/app/app.go:723 +0x7b\ngithub.com/cosmos/cosmos-sdk/baseapp.(*BaseApp).BeginBlock(_, {{0xc00010f3a0, 0x20, 0x20}, {{0xb, 0x0}, {0xc00167e2ac, 0x4}, 0xf, {0x50d1358, ...}, ...}, ...})\n\t/Users/ansheng/Applications/go/pkg/mod/github.com/cosmos/cosmos-sdk@v0.46.3/baseapp/abci.go:183 +0x843\ngithub.com/tendermint/tendermint/abci/client.(*localClient).BeginBlockSync(_, {{0xc00010f3a0, 0x20, 0x20}, {{0xb, 0x0}, {0xc00167e2ac, 0x4}, 0xf, {0x50d1358, ...}, ...}, ...})\n\t/Users/ansheng/Applications/go/pkg/mod/github.com/tendermint/tendermint@v0.34.22/abci/client/local_client.go:280 +0x118\ngithub.com/tendermint/tendermint/proxy.(*appConnConsensus).BeginBlockSync(_, {{0xc00010f3a0, 0x20, 0x20}, {{0xb, 0x0}, {0xc00167e2ac, 0x4}, 0xf, {0x50d1358, ...}, ...}, ...})\n\t/Users/ansheng/Applications/go/pkg/mod/github.com/tendermint/tendermint@v0.34.22/proxy/app_conn.go:81 +0x55\ngithub.com/tendermint/tendermint/state.execBlockOnProxyApp({0x102d65d60?, 0xc000f37500}, {0x102d6ddb0, 0xc00160a010}, 0xc003d1c000, {0x102d758d0, 0xc000012078}, 0xe?)\n\t/Users/ansheng/Applications/go/pkg/mod/github.com/tendermint/tendermint@v0.34.22/state/execution.go:307 +0x3dd\ngithub.com/tendermint/tendermint/state.(*BlockExecutor).ApplyBlock(_, {{{0xb, 0x0}, {0xc001413a90, 0x7}}, {0xc001413a98, 0x4}, 0x1, 0xe, {{0xc0005e88c0, ...}, ...}, ...}, ...)\n\t/Users/ansheng/Applications/go/pkg/mod/github.com/tendermint/tendermint@v0.34.22/state/execution.go:140 +0x171\ngithub.com/tendermint/tendermint/consensus.(*State).finalizeCommit(0xc00116f180, 0xf)\n\t/Users/ansheng/Applications/go/pkg/mod/github.com/tendermint/tendermint@v0.34.22/consensus/state.go:1659 +0xafd\ngithub.com/tendermint/tendermint/consensus.(*State).tryFinalizeCommit(0xc00116f180, 0xf)\n\t/Users/ansheng/Applications/go/pkg/mod/github.com/tendermint/tendermint@v0.34.22/consensus/state.go:1568 +0x2ff\ngithub.com/tendermint/tendermint/consensus.(*State).enterCommit.func1()\n\t/Users/ansheng/Applications/go/pkg/mod/github.com/tendermint/tendermint@v0.34.22/consensus/state.go:1503 +0x94\ngithub.com/tendermint/tendermint/consensus.(*State).enterCommit(0xc00116f180, 0xf, 0x0)\n\t/Users/ansheng/Applications/go/pkg/mod/github.com/tendermint/tendermint@v0.34.22/consensus/state.go:1541 +0xccf\ngithub.com/tendermint/tendermint/consensus.(*State).addVote(0xc00116f180, 0xc0005d6500, {0x0, 0x0})\n\t/Users/ansheng/Applications/go/pkg/mod/github.com/tendermint/tendermint@v0.34.22/consensus/state.go:2155 +0x18dc\ngithub.com/tendermint/tendermint/consensus.(*State).tryAddVote(0xc00116f180, 0xc0005d6500, {0x0?, 0x10007dbc6?})\n\t/Users/ansheng/Applications/go/pkg/mod/github.com/tendermint/tendermint@v0.34.22/consensus/state.go:1953 +0x2c\ngithub.com/tendermint/tendermint/consensus.(*State).handleMsg(0xc00116f180, {{0x102d427c0?, 0xc0001e8420?}, {0x0?, 0x0?}})\n\t/Users/ansheng/Applications/go/pkg/mod/github.com/tendermint/tendermint@v0.34.22/consensus/state.go:856 +0x170\ngithub.com/tendermint/tendermint/consensus.(*State).receiveRoutine(0xc00116f180, 0x0)\n\t/Users/ansheng/Applications/go/pkg/mod/github.com/tendermint/tendermint@v0.34.22/consensus/state.go:783 +0x505\ncreated by github.com/tendermint/tendermint/consensus.(*State).OnStart\n\t/Users/ansheng/Applications/go/pkg/mod/github.com/tendermint/tendermint@v0.34.22/consensus/state.go:379 +0x12d\n"
12:56PM INF service stop impl={"Logger":{}} module=consensus msg={} wal=/Users/ansheng/.simapp/data/cs.wal/wal
12:56PM INF service stop impl={"Dir":"/Users/ansheng/.simapp/data/cs.wal","Head":{"ID":"8YMbvUl6MAPW:/Users/ansheng/.simapp/data/cs.wal/wal","Path":"/Users/ansheng/.simapp/data/cs.wal/wal"},"ID":"group:8YMbvUl6MAPW:/Users/ansheng/.simapp/data/cs.wal/wal","Logger":{}} module=consensus msg={} wal=/Users/ansheng/.simapp/data/cs.wal/wal
12:56PM INF Timed out dur=3000 height=15 module=consensus round=0 step=3
^C12:56PM INF service stop impl={"Logger":{}} msg={}
12:56PM INF Stopping Node
12:56PM INF service stop impl={"Logger":{}} module=events msg={}
12:56PM INF service stop impl={"Logger":{}} module=pubsub msg={}
12:56PM INF service stop impl={"Logger":{}} module=txindex msg={}
12:56PM INF service stop impl={"Logger":{}} module=p2p msg={}
12:56PM INF service stop impl={"Logger":{},"Switch":{"Logger":{}}} module=pex msg={}
12:56PM INF service stop book=/Users/ansheng/.simapp/config/addrbook.json impl={"Logger":{}} module=p2p msg={}
12:56PM INF Saving AddrBook to file book=/Users/ansheng/.simapp/config/addrbook.json module=p2p size=0
12:56PM INF service stop impl={"Logger":{},"Switch":{"Logger":{}}} module=blockchain msg={}
12:56PM INF service stop impl={"Logger":{},"Metrics":{"BlockIntervalSeconds":{},"BlockParts":{},"BlockSizeBytes":{},"ByzantineValidators":{},"ByzantineValidatorsPower":{},"CommittedHeight":{},"FastSyncing":{},"FullPrevoteMessageDelay":{},"Height":{},"MissingValidators":{},"MissingValidatorsPower":{},"NumTxs":{},"QuorumPrevoteMessageDelay":{},"Rounds":{},"StateSyncing":{},"TotalTxs":{},"ValidatorLastSignedHeight":{},"ValidatorMissedBlocks":{},"ValidatorPower":{},"Validators":{},"ValidatorsPower":{}},"Switch":{"Logger":{}}} module=consensus msg={}
12:56PM INF service stop impl={"Logger":{},"commit_round":0,"commit_time":"2022-10-27T04:56:23.118203Z","height":15,"last_commit":{"peer_maj_23s":{},"votes":["Vote{0:A523C0E00D54 14/00/SIGNED_MSG_TYPE_PRECOMMIT(Precommit) 29C50AED79B0 868CA64F070D @ 2022-10-27T04:56:18.084743Z}"],"votes_bit_array":"BA{1:x} 1/1 = 1.00"},"last_validators":{"proposer":{"address":"A523C0E00D54621EF0A6DA89E1599ECD49C17112","proposer_priority":0,"pub_key":"n4s5mAs0a+PBVkrfcQSQJt8JJcdeigMrwyAQjaAqKE0=","voting_power":1},"validators":[{"address":"A523C0E00D54621EF0A6DA89E1599ECD49C17112","proposer_priority":0,"pub_key":"n4s5mAs0a+PBVkrfcQSQJt8JJcdeigMrwyAQjaAqKE0=","voting_power":1}]},"locked_block":{"data":{"txs":[]},"evidence":{"evidence":[]},"header":{"app_hash":"0196F06A469DB8C440C50D5FF2CA5A264E992810A03DD2C5DF07D5B1D67AF538","chain_id":"test","consensus_hash":"048091BC7DDC283F77BFBF91D73C44DA58C3DF8A9CBC867405D8B7F3DAADA22F","data_hash":"E3B0C44298FC1C149AFBF4C8996FB92427AE41E4649B934CA495991B7852B855","evidence_hash":"E3B0C44298FC1C149AFBF4C8996FB92427AE41E4649B934CA495991B7852B855","height":15,"last_block_id":{"hash":"29C50AED79B0709F35616DED7C3E02E121EDB9CB152CB5820799E66A9C796937","parts":{"hash":"8464EBD309198F999142ABEEEA6A120ABC02CCC5C7AE115025DD0F14DBD8BB33","total":1}},"last_commit_hash":"216639BF99A614F2D9C8A55E47B7AA9C6DC7A8AD4A0A036D632AD704C1271D6C","last_results_hash":"E3B0C44298FC1C149AFBF4C8996FB92427AE41E4649B934CA495991B7852B855","next_validators_hash":"F841ED5652B3846DA9AD4430F291FA1A476CC52EA3D681FDF9D742C9CDFDD588","proposer_address":"A523C0E00D54621EF0A6DA89E1599ECD49C17112","time":"2022-10-27T04:56:18.084743Z","validators_hash":"F841ED5652B3846DA9AD4430F291FA1A476CC52EA3D681FDF9D742C9CDFDD588","version":{"block":11}},"last_commit":{"block_id":{"hash":"29C50AED79B0709F35616DED7C3E02E121EDB9CB152CB5820799E66A9C796937","parts":{"hash":"8464EBD309198F999142ABEEEA6A120ABC02CCC5C7AE115025DD0F14DBD8BB33","total":1}},"height":14,"round":0,"signatures":[{"block_id_flag":2,"signature":"hoymTwcN+Hiqc+D0OsJlgdXMOtxisAMEtl62bGl1KAC89CtLA8I2EQ550mg26bTt20hG0SihJ7oWKPOhw7wkCQ==","timestamp":"2022-10-27T04:56:18.084743Z","validator_address":"A523C0E00D54621EF0A6DA89E1599ECD49C17112"}]}},"locked_block_parts":{"count/total":"1/1","parts_bit_array":"x"},"locked_round":0,"proposal":{"Type":32,"block_id":{"hash":"1C46437B8180D93B298A5FA892A1961E752D05AFCBC9EC67DC19689DD3F4CC3F","parts":{"hash":"E5C645E9B0BF084E6CFFCEB0ED98E613F32464F73900A3C7E0C74C3791E636D3","total":1}},"height":15,"pol_round":-1,"round":0,"signature":"XSTdVPwBNtIYNm00z1dejffmV5y5zm0y4/Vd+gKZ0hmp3p7O+a1FshXSCBp87U2pgZBckWKGjz/oWXDq3bf1Bg==","timestamp":"2022-10-27T04:56:23.096118Z"},"proposal_block":{"data":{"txs":[]},"evidence":{"evidence":[]},"header":{"app_hash":"0196F06A469DB8C440C50D5FF2CA5A264E992810A03DD2C5DF07D5B1D67AF538","chain_id":"test","consensus_hash":"048091BC7DDC283F77BFBF91D73C44DA58C3DF8A9CBC867405D8B7F3DAADA22F","data_hash":"E3B0C44298FC1C149AFBF4C8996FB92427AE41E4649B934CA495991B7852B855","evidence_hash":"E3B0C44298FC1C149AFBF4C8996FB92427AE41E4649B934CA495991B7852B855","height":15,"last_block_id":{"hash":"29C50AED79B0709F35616DED7C3E02E121EDB9CB152CB5820799E66A9C796937","parts":{"hash":"8464EBD309198F999142ABEEEA6A120ABC02CCC5C7AE115025DD0F14DBD8BB33","total":1}},"last_commit_hash":"216639BF99A614F2D9C8A55E47B7AA9C6DC7A8AD4A0A036D632AD704C1271D6C","last_results_hash":"E3B0C44298FC1C149AFBF4C8996FB92427AE41E4649B934CA495991B7852B855","next_validators_hash":"F841ED5652B3846DA9AD4430F291FA1A476CC52EA3D681FDF9D742C9CDFDD588","proposer_address":"A523C0E00D54621EF0A6DA89E1599ECD49C17112","time":"2022-10-27T04:56:18.084743Z","validators_hash":"F841ED5652B3846DA9AD4430F291FA1A476CC52EA3D681FDF9D742C9CDFDD588","version":{"block":11}},"last_commit":{"block_id":{"hash":"29C50AED79B0709F35616DED7C3E02E121EDB9CB152CB5820799E66A9C796937","parts":{"hash":"8464EBD309198F999142ABEEEA6A120ABC02CCC5C7AE115025DD0F14DBD8BB33","total":1}},"height":14,"round":0,"signatures":[{"block_id_flag":2,"signature":"hoymTwcN+Hiqc+D0OsJlgdXMOtxisAMEtl62bGl1KAC89CtLA8I2EQ550mg26bTt20hG0SihJ7oWKPOhw7wkCQ==","timestamp":"2022-10-27T04:56:18.084743Z","validator_address":"A523C0E00D54621EF0A6DA89E1599ECD49C17112"}]}},"proposal_block_parts":{"count/total":"1/1","parts_bit_array":"x"},"round":0,"start_time":"2022-10-27T04:56:23.09001Z","step":8,"triggered_timeout_precommit":false,"valid_block":{"data":{"txs":[]},"evidence":{"evidence":[]},"header":{"app_hash":"0196F06A469DB8C440C50D5FF2CA5A264E992810A03DD2C5DF07D5B1D67AF538","chain_id":"test","consensus_hash":"048091BC7DDC283F77BFBF91D73C44DA58C3DF8A9CBC867405D8B7F3DAADA22F","data_hash":"E3B0C44298FC1C149AFBF4C8996FB92427AE41E4649B934CA495991B7852B855","evidence_hash":"E3B0C44298FC1C149AFBF4C8996FB92427AE41E4649B934CA495991B7852B855","height":15,"last_block_id":{"hash":"29C50AED79B0709F35616DED7C3E02E121EDB9CB152CB5820799E66A9C796937","parts":{"hash":"8464EBD309198F999142ABEEEA6A120ABC02CCC5C7AE115025DD0F14DBD8BB33","total":1}},"last_commit_hash":"216639BF99A614F2D9C8A55E47B7AA9C6DC7A8AD4A0A036D632AD704C1271D6C","last_results_hash":"E3B0C44298FC1C149AFBF4C8996FB92427AE41E4649B934CA495991B7852B855","next_validators_hash":"F841ED5652B3846DA9AD4430F291FA1A476CC52EA3D681FDF9D742C9CDFDD588","proposer_address":"A523C0E00D54621EF0A6DA89E1599ECD49C17112","time":"2022-10-27T04:56:18.084743Z","validators_hash":"F841ED5652B3846DA9AD4430F291FA1A476CC52EA3D681FDF9D742C9CDFDD588","version":{"block":11}},"last_commit":{"block_id":{"hash":"29C50AED79B0709F35616DED7C3E02E121EDB9CB152CB5820799E66A9C796937","parts":{"hash":"8464EBD309198F999142ABEEEA6A120ABC02CCC5C7AE115025DD0F14DBD8BB33","total":1}},"height":14,"round":0,"signatures":[{"block_id_flag":2,"signature":"hoymTwcN+Hiqc+D0OsJlgdXMOtxisAMEtl62bGl1KAC89CtLA8I2EQ550mg26bTt20hG0SihJ7oWKPOhw7wkCQ==","timestamp":"2022-10-27T04:56:18.084743Z","validator_address":"A523C0E00D54621EF0A6DA89E1599ECD49C17112"}]}},"valid_block_parts":{"count/total":"1/1","parts_bit_array":"x"},"valid_round":0,"validators":{"proposer":{"address":"A523C0E00D54621EF0A6DA89E1599ECD49C17112","proposer_priority":0,"pub_key":"n4s5mAs0a+PBVkrfcQSQJt8JJcdeigMrwyAQjaAqKE0=","voting_power":1},"validators":[{"address":"A523C0E00D54621EF0A6DA89E1599ECD49C17112","proposer_priority":0,"pub_key":"n4s5mAs0a+PBVkrfcQSQJt8JJcdeigMrwyAQjaAqKE0=","voting_power":1}]},"votes":[{"precommits":["Vote{0:A523C0E00D54 15/00/SIGNED_MSG_TYPE_PRECOMMIT(Precommit) 1C46437B8180 5F7B243E69F6 @ 2022-10-27T04:56:23.113395Z}"],"precommits_bit_array":"BA{1:x} 1/1 = 1.00","prevotes":["Vote{0:A523C0E00D54 15/00/SIGNED_MSG_TYPE_PREVOTE(Prevote) 1C46437B8180 C57A29FF3C3B @ 2022-10-27T04:56:23.106979Z}"],"prevotes_bit_array":"BA{1:x} 1/1 = 1.00","round":0},{"precommits":["nil-Vote"],"precommits_bit_array":"BA{1:_} 0/1 = 0.00","prevotes":["nil-Vote"],"prevotes_bit_array":"BA{1:_} 0/1 = 0.00","round":1}]} module=consensus msg={}
12:56PM INF service stop impl={"Logger":{}} module=consensus msg={}
12:56PM INF service stop impl={"Logger":{},"Switch":{"Logger":{}}} module=evidence msg={}
12:56PM INF service stop impl={"Logger":{},"Switch":{"Logger":{}}} module=statesync msg={}
12:56PM ERR Stopped accept routine, as transport is closed module=p2p numPeers=0
12:56PM INF Closing rpc listener listener={"Listener":{}}
12:56PM INF RPC HTTP server stopped err="accept tcp 127.0.0.1:26657: use of closed network connection" module=rpc-server
12:56PM ERR Error serving server err="accept tcp 127.0.0.1:26657: use of closed network connection"
12:56PM INF exiting...

Run the v2 version of the program

./simapp_v2/build/simappd start
12:56PM INF starting node with ABCI Tendermint in-process
12:56PM INF service start impl=multiAppConn module=proxy msg={}
12:56PM INF service start connection=query impl=localClient module=abci-client msg={}
12:56PM INF service start connection=snapshot impl=localClient module=abci-client msg={}
12:56PM INF service start connection=mempool impl=localClient module=abci-client msg={}
12:56PM INF service start connection=consensus impl=localClient module=abci-client msg={}
12:56PM INF service start impl=EventBus module=events msg={}
12:56PM INF service start impl=PubSub module=pubsub msg={}
12:56PM INF service start impl=IndexerService module=txindex msg={}
12:56PM INF ABCI Handshake App Info hash="\x01��jF���@�\r_��Z&N�(\x10�=���\aձ�z�8" height=14 module=consensus protocol-version=0 software-version=
12:56PM INF ABCI Replay Blocks appHeight=14 module=consensus stateHeight=14 storeHeight=15
12:56PM INF Replay last block using real app module=consensus
12:56PM ERR UPGRADE "v1-to-v2" NEEDED at height: 15:
panic: UPGRADE "v1-to-v2" NEEDED at height: 15:

goroutine 1 [running]:
github.com/cosmos/cosmos-sdk/x/upgrade.BeginBlocker({{0xc000623458, 0x16}, 0xc0015ea6c0, {0x102d4a1c8, 0xc0011987e0}, {0x102d74090, 0xc0001aad80}, 0xc0015ebc20, {0x102d40c60, 0xc0005c6540}, ...}, ...)
    /Users/ansheng/Applications/go/pkg/mod/github.com/cosmos/cosmos-sdk@v0.46.3/x/upgrade/abci.go:56 +0xf94
github.com/cosmos/cosmos-sdk/x/upgrade.AppModule.BeginBlock(...)
    /Users/ansheng/Applications/go/pkg/mod/github.com/cosmos/cosmos-sdk@v0.46.3/x/upgrade/module.go:134
github.com/cosmos/cosmos-sdk/types/module.(*Manager).BeginBlock(_, {{0x102d642b0, 0xc00005a0a8}, {0x102d76180, 0xc000127d80}, {{0xb, 0x0}, {0xc0005aa640, 0x4}, 0xf, ...}, ...}, ...)
    /Users/ansheng/Applications/go/pkg/mod/github.com/cosmos/cosmos-sdk@v0.46.3/types/module/module.go:484 +0x398
simapp/app.(*App).BeginBlocker(_, {{0x102d642b0, 0xc00005a0a8}, {0x102d76180, 0xc000127d80}, {{0xb, 0x0}, {0xc0005aa640, 0x4}, 0xf, ...}, ...}, ...)
    /Users/ansheng/workspaces/cosmos/upgrade/simapp_v2/app/app.go:723 +0x7b
github.com/cosmos/cosmos-sdk/baseapp.(*BaseApp).BeginBlock(_, {{0xc00123a1a0, 0x20, 0x20}, {{0xb, 0x0}, {0xc0005aa640, 0x4}, 0xf, {0x50d1358, ...}, ...}, ...})
    /Users/ansheng/Applications/go/pkg/mod/github.com/cosmos/cosmos-sdk@v0.46.3/baseapp/abci.go:183 +0x843
github.com/tendermint/tendermint/abci/client.(*localClient).BeginBlockSync(_, {{0xc00123a1a0, 0x20, 0x20}, {{0xb, 0x0}, {0xc0005aa640, 0x4}, 0xf, {0x50d1358, ...}, ...}, ...})
    /Users/ansheng/Applications/go/pkg/mod/github.com/tendermint/tendermint@v0.34.22/abci/client/local_client.go:280 +0x118
github.com/tendermint/tendermint/proxy.(*appConnConsensus).BeginBlockSync(_, {{0xc00123a1a0, 0x20, 0x20}, {{0xb, 0x0}, {0xc0005aa640, 0x4}, 0xf, {0x50d1358, ...}, ...}, ...})
    /Users/ansheng/Applications/go/pkg/mod/github.com/tendermint/tendermint@v0.34.22/proxy/app_conn.go:81 +0x55
github.com/tendermint/tendermint/state.execBlockOnProxyApp({0x102d65820?, 0xc000199260}, {0x102d6d870, 0xc0015e5120}, 0xc000ff61e0, {0x102d75390, 0xc0001d0000}, 0xe?)
    /Users/ansheng/Applications/go/pkg/mod/github.com/tendermint/tendermint@v0.34.22/state/execution.go:307 +0x3dd
github.com/tendermint/tendermint/state.(*BlockExecutor).ApplyBlock(_, {{{0xb, 0x0}, {0xc00060ed48, 0x7}}, {0xc00060ed60, 0x4}, 0x1, 0xe, {{0xc00057c660, ...}, ...}, ...}, ...)
    /Users/ansheng/Applications/go/pkg/mod/github.com/tendermint/tendermint@v0.34.22/state/execution.go:140 +0x171
github.com/tendermint/tendermint/consensus.(*Handshaker).replayBlock(_, {{{0xb, 0x0}, {0xc00060ed48, 0x7}}, {0xc00060ed60, 0x4}, 0x1, 0xe, {{0xc00057c660, ...}, ...}, ...}, ...)
    /Users/ansheng/Applications/go/pkg/mod/github.com/tendermint/tendermint@v0.34.22/consensus/replay.go:503 +0x23c
github.com/tendermint/tendermint/consensus.(*Handshaker).ReplayBlocks(_, {{{0xb, 0x0}, {0xc00060ed48, 0x7}}, {0xc00060ed60, 0x4}, 0x1, 0xe, {{0xc00057c660, ...}, ...}, ...}, ...)
    /Users/ansheng/Applications/go/pkg/mod/github.com/tendermint/tendermint@v0.34.22/consensus/replay.go:416 +0x7ae
github.com/tendermint/tendermint/consensus.(*Handshaker).Handshake(0xc0012d79a8, {0x102d777e8, 0xc0011ac8f0})
    /Users/ansheng/Applications/go/pkg/mod/github.com/tendermint/tendermint@v0.34.22/consensus/replay.go:268 +0x3d4
github.com/tendermint/tendermint/node.doHandshake({_, _}, {{{0xb, 0x0}, {0xc00060ed48, 0x7}}, {0xc00060ed60, 0x4}, 0x1, 0xe, ...}, ...)
    /Users/ansheng/Applications/go/pkg/mod/github.com/tendermint/tendermint@v0.34.22/node/node.go:330 +0x1b8
github.com/tendermint/tendermint/node.NewNode(0xc0001dd7c0, {0x102d601b8, 0xc000118000}, 0xc000254500, {0x102d423e0, 0xc000013f68}, 0x1?, 0x0?, 0xc000254800, {0x102d65820, ...}, ...)
    /Users/ansheng/Applications/go/pkg/mod/github.com/tendermint/tendermint@v0.34.22/node/node.go:778 +0x597
github.com/cosmos/cosmos-sdk/server.startInProcess(_, {{0x0, 0x0, 0x0}, {0x102d85440, 0xc00112b8f0}, 0x0, {0xc00127c068, 0x4}, {0x102d7b400, ...}, ...}, ...)
    /Users/ansheng/Applications/go/pkg/mod/github.com/cosmos/cosmos-sdk@v0.46.3/server/start.go:311 +0x7fb
github.com/cosmos/cosmos-sdk/server.StartCmd.func2(0xc00123fb80?, {0x10403ee78?, 0x0?, 0x0?})
    /Users/ansheng/Applications/go/pkg/mod/github.com/cosmos/cosmos-sdk@v0.46.3/server/start.go:143 +0x148
github.com/spf13/cobra.(*Command).execute(0xc00123fb80, {0x10403ee78, 0x0, 0x0})
    /Users/ansheng/Applications/go/pkg/mod/github.com/spf13/cobra@v1.5.0/command.go:872 +0x694
github.com/spf13/cobra.(*Command).ExecuteC(0xc000448000)
    /Users/ansheng/Applications/go/pkg/mod/github.com/spf13/cobra@v1.5.0/command.go:990 +0x3bd
github.com/spf13/cobra.(*Command).Execute(...)
    /Users/ansheng/Applications/go/pkg/mod/github.com/spf13/cobra@v1.5.0/command.go:918
github.com/spf13/cobra.(*Command).ExecuteContext(...)
    /Users/ansheng/Applications/go/pkg/mod/github.com/spf13/cobra@v1.5.0/command.go:911
github.com/cosmos/cosmos-sdk/server/cmd.Execute(0x101af7c80?, {0x0, 0x0}, {0xc000623458, 0x16})
    /Users/ansheng/Applications/go/pkg/mod/github.com/cosmos/cosmos-sdk@v0.46.3/server/cmd/execute.go:36 +0x20f
main.main()
    /Users/ansheng/workspaces/cosmos/upgrade/simapp_v2/cmd/simappd/main.go:15 +0x30

v2 version has SetUpgradeHandler

$ cat simapp_v2/app/upgrades.go
package app

import (
    storetypes "github.com/cosmos/cosmos-sdk/store/types"
    sdk "github.com/cosmos/cosmos-sdk/types"
    "github.com/cosmos/cosmos-sdk/types/module"
    upgradetypes "github.com/cosmos/cosmos-sdk/x/upgrade/types"
)

const UpgradeName = "v1-to-v2"

func (app App) RegisterUpgradeHandlers() {
    app.UpgradeKeeper.SetUpgradeHandler(UpgradeName,
        func(ctx sdk.Context, plan upgradetypes.Plan, fromVM module.VersionMap) (module.VersionMap, error) {
            app.Logger().Info("v1-to-v2...............")
            return app.mm.RunMigrations(ctx, app.configurator, fromVM)
        })

    upgradeInfo, err := app.UpgradeKeeper.ReadUpgradeInfoFromDisk()
    if err != nil {
        panic(err)
    }

    if upgradeInfo.Name == UpgradeName && !app.UpgradeKeeper.IsSkipHeight(upgradeInfo.Height) {
        storeUpgrades := storetypes.StoreUpgrades{}

        // configure store loader that checks if version == upgradeHeight and applies store upgrades
        app.SetStoreLoader(upgradetypes.UpgradeStoreLoader(upgradeInfo.Height, &storeUpgrades))
    }
}

What should I do to make the upgrade program work properly? Do I need to run multiple validator nodes? Thank you 🙏

it don't start the new binary, if it's supposed to auto download, maybe check the download urls in the proposal metadata.

aansheng commented 1 year ago

The above error is because there is no registration in app.go, adding the following code can run normally

app.RegisterUpgradeHandlers()