Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bump cosmos-sdk to v0.42.9 #108

Closed
wants to merge 8 commits into from
Closed

Bump cosmos-sdk to v0.42.9 #108

wants to merge 8 commits into from

Conversation

davepuchyr
Copy link
Contributor

No description provided.

faddat and others added 7 commits August 2, 2021 23:10
These changes should make state sync work
thought the issuer may be gitian
`panic: unable to redefine 'o' shorthand in "account-transfer" flagset: it's already used for "new-owner" flag`
This was referenced Aug 5, 2021
@davepuchyr
Copy link
Contributor Author

davepuchyr commented Aug 5, 2021

@LeCodeurDuDimanche , it seems like the consensus bug that I mentioned here is unrelated to your escrow PR. It or another bug exists when sync'ing with iov-mainnet-ibc starting at block 4598000 (post software upgrade proposal 9).

-- Logs begin at Tue 2021-07-06 21:04:38 CEST, end at Thu 2021-08-05 14:30:04 CEST. --
Aug 05 12:10:42 systemd[1]: Started Starname Asset Name Service.
Aug 05 12:10:42 starnamed[556507]: 12:10PM INF starting ABCI with Tendermint
Aug 05 12:10:42 starnamed[556507]: 12:10PM INF Starting multiAppConn service impl=multiAppConn module=proxy
Aug 05 12:10:42 starnamed[556507]: 12:10PM INF Starting localClient service connection=query impl=localClient module=abci-client
Aug 05 12:10:42 starnamed[556507]: 12:10PM INF Starting localClient service connection=snapshot impl=localClient module=abci-client
Aug 05 12:10:42 starnamed[556507]: 12:10PM INF Starting localClient service connection=mempool impl=localClient module=abci-client
Aug 05 12:10:42 starnamed[556507]: 12:10PM INF Starting localClient service connection=consensus impl=localClient module=abci-client
Aug 05 12:10:42 starnamed[556507]: 12:10PM INF Starting EventBus service impl=EventBus module=events
Aug 05 12:10:42 starnamed[556507]: 12:10PM INF Starting PubSub service impl=PubSub module=pubsub
Aug 05 12:10:43 starnamed[556507]: 12:10PM INF Starting IndexerService service impl=IndexerService module=txindex
Aug 05 12:10:43 starnamed[556507]: 12:10PM INF ABCI Handshake App Info hash="��*}\ve�\ft)v3��\\��ߖN\n\x1a�á\x00��\x10�\x16�" height=4597999 module=consensus protocol-version=0 software-version=
Aug 05 12:10:43 starnamed[556507]: 12:10PM INF ABCI Replay Blocks appHeight=4597999 module=consensus stateHeight=4597999 storeHeight=4598000
Aug 05 12:10:43 starnamed[556507]: 12:10PM INF Replay last block using real app module=consensus
Aug 05 12:10:43 starnamed[556507]: 12:10PM INF applying upgrade "fix-cosmos-sdk-migrate-bug" at height: 4598000
Aug 05 12:10:43 starnamed[556507]: 12:10PM INF executed block height=4598000 module=consensus num_invalid_txs=0 num_valid_txs=0
Aug 05 12:10:43 starnamed[556507]: 12:10PM INF commit synced commit=436F6D6D697449447B5B3735203133352031353720323335203139362037332034372032343620313132203133362031363920313433203134332032313220313235203731203331203137203933203233362031383720313332203235352039372037302031373720313637203134392031373920313136203935203134325D3A3436323846307D
Aug 05 12:10:43 starnamed[556507]: 12:10PM INF committed state app_hash=4B879DEBC4492FF67088A98F8FD47D471F115DECBB84FF6146B1A795B3745F8E height=4598000 module=consensus num_txs=0
Aug 05 12:10:43 starnamed[556507]: 12:10PM INF Completed ABCI Handshake - Tendermint and App are synced appHash="��*}\ve�\ft)v3��\\��ߖN\n\x1a�á\x00��\x10�\x16�" appHeight=4597999 module=consensus
Aug 05 12:10:43 starnamed[556507]: 12:10PM INF Version info block=11 p2p=8 tendermint_version=0.34.11
Aug 05 12:10:43 starnamed[556507]: 12:10PM INF This node is not a validator addr=05482EF679ABDF890791DDEC85EF1654A74240A4 module=consensus pubKey=Sc+rAT9cNygdo6ZKbj1OW2J+a9kYmW9tvlDyjS0bZ3U=
Aug 05 12:10:43 starnamed[556507]: 12:10PM INF indexed block height=4598000 module=txindex
Aug 05 12:10:43 starnamed[556507]: 12:10PM INF P2P Node ID ID=6890366d31eac1588077e8f9bd413c9001acd088 file=/home/iov/iov-mainnet-ibc/config/node_key.json module=p2p
Aug 05 12:10:43 starnamed[556507]: 12:10PM INF Adding persistent peers addrs=["0fd08a878b26544a6d487456815e55b0f2350028@debt:16656","[email protected]:16656","[email protected]:26656","[email protected]:26656","[email protected]:26656","[email protected]:16656","[email protected]:16656","[email protected]:26656","[email protected]:26656","[email protected]:26656"] module=p2p
Aug 05 12:10:43 starnamed[556507]: 12:10PM INF Adding unconditional peer ids ids=[] module=p2p
Aug 05 12:10:43 starnamed[556507]: 12:10PM INF Add our address to book addr={"id":"6890366d31eac1588077e8f9bd413c9001acd088","ip":"0.0.0.0","port":16656} book=/home/iov/iov-mainnet-ibc/config/addrbook.json module=p2p
Aug 05 12:10:43 starnamed[556507]: 12:10PM INF Starting Node service impl=Node
Aug 05 12:10:43 starnamed[556507]: 12:10PM INF Starting pprof server laddr=localhost:6060
Aug 05 12:10:43 starnamed[556507]: 12:10PM INF Starting P2P Switch service impl="P2P Switch" module=p2p
Aug 05 12:10:43 starnamed[556507]: 12:10PM INF Starting Consensus service impl=ConsensusReactor module=consensus
Aug 05 12:10:43 starnamed[556507]: 12:10PM INF Reactor  module=consensus waitSync=true
Aug 05 12:10:43 starnamed[556507]: 12:10PM INF Starting Evidence service impl=Evidence module=evidence
Aug 05 12:10:43 starnamed[556507]: 12:10PM INF Starting StateSync service impl=StateSync module=statesync
Aug 05 12:10:43 starnamed[556507]: 12:10PM INF Starting PEX service impl=PEX module=pex
Aug 05 12:10:43 starnamed[556507]: 12:10PM INF Starting AddrBook service book=/home/iov/iov-mainnet-ibc/config/addrbook.json impl=AddrBook module=p2p
Aug 05 12:10:43 starnamed[556507]: 12:10PM INF Starting RPC HTTP server on [::]:16657 module=rpc-server
Aug 05 12:10:43 starnamed[556507]: 12:10PM INF Starting Mempool service impl=Mempool module=mempool
Aug 05 12:10:43 starnamed[556507]: 12:10PM INF Starting BlockchainReactor service impl=BlockchainReactor module=blockchain
Aug 05 12:10:43 starnamed[556507]: 12:10PM INF Starting BlockPool service impl=BlockPool module=blockchain
Aug 05 12:10:43 starnamed[556507]: 12:10PM ERR Can't add peer's address to addrbook err="Cannot add non-routable address [email protected]:16656" module=p2p
Aug 05 12:10:43 starnamed[556507]: 12:10PM INF Ensure peers module=pex numDialing=0 numInPeers=0 numOutPeers=0 numToDial=10

...p2p stuff and 31,141 blocks later...

Aug 05 12:36:56 starnamed[556507]: 12:36PM INF indexed block height=4629141 module=txindex
Aug 05 12:36:56 starnamed[556507]: 12:36PM INF executed block height=4629142 module=state num_invalid_txs=0 num_valid_txs=0
Aug 05 12:36:56 starnamed[556507]: 12:36PM INF commit synced commit=436F6D6D697449447B5B3731203130342033392039342031303120383220373620313935203733203136362032313520313632203135382031353620323232203134372035362036352031303220313730203735203920313035203931203234352031353720363920313132203439203136342033312031375D3A3436413239367D
Aug 05 12:36:56 starnamed[556507]: 12:36PM INF committed state app_hash=4768275E65524CC349A6D7A29E9CDE93384166AA4B09695BF59D457031A41F11 height=4629142 module=state num_txs=0
Aug 05 12:36:56 starnamed[556507]: 12:36PM INF indexed block height=4629142 module=txindex
Aug 05 12:36:56 starnamed[556507]: 12:36PM INF client state updated client-id=07-tendermint-9 height=1-454358 module=x/ibc/client
Aug 05 12:36:56 starnamed[556507]: 12:36PM INF executed block height=4629143 module=state num_invalid_txs=1 num_valid_txs=0
Aug 05 12:36:56 starnamed[556507]: 12:36PM INF commit synced commit=436F6D6D697449447B5B3230352039352033322033203332203133382032333720383420313439203732203230372034302032313220323432203233372039203234332031343520323139203234392031322031323220323035203130302031312031313320323420332031392032343120323436203135325D3A3436413239377D
Aug 05 12:36:56 starnamed[556507]: 12:36PM INF committed state app_hash=CD5F2003208AED549548CF28D4F2ED09F391DBF90C7ACD640B71180313F1F698 height=4629143 module=state num_txs=1
Aug 05 12:36:56 starnamed[556507]: 12:36PM INF indexed block height=4629143 module=txindex
Aug 05 12:36:56 starnamed[556507]: panic: Failed to process committed block (4629144:1A1430E1D9043EE69FFBA2ED4147FF754DE1799B9856238720E0E2232F4BCECA): wrong Block.Header.AppHash.  Expected CD5F2003208AED549548CF28D4F2ED09F391DBF90C7ACD640B71180313F1F698, got C40C92644BDF9373DF3C4C5781F0D8A623ADCF9082002E4B874167B31C24CA48
Aug 05 12:36:56 starnamed[556507]: goroutine 149 [running]:
Aug 05 12:36:56 starnamed[556507]: github.com/tendermint/tendermint/blockchain/v0.(*BlockchainReactor).poolRoutine(0xc000e69340, 0x0)
Aug 05 12:36:56 starnamed[556507]:         github.com/tendermint/[email protected]/blockchain/v0/reactor.go:401 +0x15bf
Aug 05 12:36:56 starnamed[556507]: created by github.com/tendermint/tendermint/blockchain/v0.(*BlockchainReactor).OnStart
Aug 05 12:36:56 starnamed[556507]:         github.com/tendermint/[email protected]/blockchain/v0/reactor.go:110 +0x8c
Aug 05 12:36:56 systemd[1]: starnamed.service: Main process exited, code=exited, status=2/INVALIDARGUMENT
Aug 05 12:36:56 systemd[1]: starnamed.service: Failed with result 'exit-code'.

@davepuchyr
Copy link
Contributor Author

4629144

Block 4629143, the block before the consensus failure, updated an IBC client. Evidently the IBC fixes in cosmos-sdk v0.42.9 require a software upgrade proposal.

@davepuchyr
Copy link
Contributor Author

panic: Failed to process committed block (4629144:1A1430E1D9043EE69FFBA2ED4147FF754DE1799B9856238720E0E2232F4BCECA): wrong Block.Header.AppHash. Expected CD5F2003208AED549548CF28D4F2ED09F391DBF90C7ACD640B71180313F1F698, got C40C92644BDF9373DF3C4C5781F0D8A623ADCF9082002E4B874167B31C24CA48

The panic is caused by going from [email protected] to [email protected].

Closed due to #113.

@davepuchyr davepuchyr closed this Sep 10, 2021
@davepuchyr davepuchyr deleted the bump-cosmos-sdk branch September 17, 2021 08:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants