Closed aansheng closed 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.
$ 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.
The above error is because there is no registration in app.go, adding the following code can run normally
app.RegisterUpgradeHandlers()
Summary of Bug
Upgrade from v0.44.8 to v0.45.0 failed.
Version
Steps to Reproduce
The entire log of the genesis node is as follows.
The content log of running the upgrade script is as follows.