opentensor / subtensor

Bittensor Blockchain Layer
The Unlicense
146 stars 150 forks source link

Investigate Genesis Mismatch Issue #547

Closed distributedstatemachine closed 1 month ago

distributedstatemachine commented 3 months ago

Description

Users are unable to sync mainnet , they are the nodes returns the following error

Thread 'tokio-runtime-worker' panicked at 'Storage root must match that calculated.', /root/.cargo/git/checkouts/polkadot-sdk-cff69157b985ed76/7049c3c/substrate/frame/executive/src/lib.rs:834

Tasks

Related Links

distributedstatemachine commented 3 months ago

@open-junius can you please update this ticket with your findings. Let also track the issue here and not on discord

open-junius commented 3 months ago

I checked the both test and finney environments, actually the genesis hash is the same for old node and new polkadot-sdk v1.10 based node. The error is not from simple comparing the hash value. Then I did some experiment in local env, build three different nodes based on v0.9.37, v1.0.0 and v1.10.0. I can see the v1.0.0 node can talk with v0.9.37 without any mismatched genesis error. It happened when I use the v1.10.0 node to connect v0.9.37 node, lots of mismatched genesis error from different peers. Finally, I checked the network from the same v1.10.0 nodes, it is ok without any error.

tavurth commented 2 months ago

https://github.com/opentensor/subtensor/issues/655#issuecomment-2259624975

Other is duplicate?

orriin commented 1 month ago

Duplicate https://github.com/opentensor/subtensor/issues/655