okx / exchain

⛓️ EVM & Wasm $ IBC-compatible, OKTC is a L1 blockchain network built on top of Cosmos SDK that aims for optimal interoperability and performance ✨
https://www.okx.com/oktc
Other
573 stars 182 forks source link

sync with the test node bug #620

Open hufengvia opened 3 years ago

hufengvia commented 3 years ago

I use version 0.16.2 okexchaind to sync block , and then when according to the sync log, I see that: I[2021-01-25|14:42:06.528][4332] Committed state module=state height=1 txs=0 appHash=4D70D9678E464194AA6C8771C9289ED2DC8F2DA39B5EFD441AE4111922F47680 the first hight have the apphash.

and then I use the rpc node from okexchain bussiness,it show that the apphash is empty string: ` curl --location --request GET 'http://okexchaintest-rpc1.okexcn.com:26659/okexchain/v1/blocks/1'

return :

{ "version": { "block": "10", "app": "0" }, "chain_id": "okexchain-65", "height": "1", "time": "2020-12-04T04:00:00Z", "last_block_id": { "hash": "", "parts": { "total": "0", "hash": "" } }, "last_commit_hash": "", "data_hash": "", "validators_hash": "A809FCB6E86D5AF31AD1F5BB6A684AD7B189F1750985EA76022C5933CE824E43", "next_validators_hash": "A809FCB6E86D5AF31AD1F5BB6A684AD7B189F1750985EA76022C5933CE824E43", "consensus_hash": "048091BC7DDC283F77BFBF91D73C44DA58C3DF8A9CBC867405D8B7F3DAADA22F", "app_hash": "", "last_results_hash": "", "evidence_hash": "", "proposer_address": "1908D39C6EAA69D6E756DBF3C309FC43B249C45E" }

`

seems like that my node is different from the bussiness node about the apphash , it couse that this sync err at the height 462907 : I[2021-02-03|09:03:50.293][10958] starting ABCI with Tendermint module=main error during handshake: error on replay: wrong Block.Header.AppHash. Expected 7CC47917655BA3ECD93E7D1BDD1C79780D96A09764BDEE6607EF0583900157A2, got B9B3A578ECD24538A94DF6C740C86CD10CA1D195A91C094C223E7649227150E7

even I update the node and restart , still stuck at height 462907.

zhongqiuwood commented 3 years ago

use https://github.com/okex/okexchain/tree/v0.16.3, and sync from genesis