-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Consensus error between wasm and native runtime execution in Metadata_metadata #1495
Comments
Is this a local test network? When did you install substrate? Today? |
substrate/node/runtime/src/lib.rs Line 101 in ec38ea3
So that it was assuming the wasm runtime version is compatible with native runtime version, which are actually not, and generating this error. I had similar error before and update version and rebuild (both native and wasm) fixes it. |
Well, let's say private but all the secrets are checked in at https://github.com/webmaster128/tsp-networks, so everybody can hack it.
Jep, version 0.10.0-78bb4c0
Indeed, I tried to connect to my node using substrate-ui. Connection to the websocket worked but then I always get
and the browser hangs. |
I am not competent enought (yet) to change the runtime. All I did was https://github.com/webmaster128/tsp-networks/blob/master/InstallSubstrateFromSource.md#generate-new-chain, i.e. take whatever |
Is the substrate version you used to generate the json file match to the substrate version you run it? |
Yes, generated with substrate 0.10.0-78bb4c04-x86_64-linux-gnu and running with docker tag 0.10.0-78bb4c0
Confirming that there is no error when syncing from One other thing I noted: The compilation |
this does not change the behaviour |
OK. After I upgrade everything to latest and now having the same error. |
I can confirm wasm generated metadata is corrupted. Using latest substrate and did a ./scripts/build.sh, which updates runtime Cargo.lock and wasm files. My result and script to generate ascii text: https://gist.github.com/xlc/3c9f6b0cf81412f0173d0c8e29650ef6 Diff: This completely breaks polkadot.js apps polkadot-js/api#609 For my custom runtime, the overridden section stops at some position and after the data are correct. Must be related to #1460 as this is a typical memory management issue |
🎉 confirming 0.10.0-4d0eea0 allows connecting via substrate-ui. Thanks! |
In the test network "TSP antnet", I get the error
full consensus_error_Metadata_metadata.log as gist
Both values share the same prefix but are different somewhere.
I did not do anything with this chain other than https://github.com/webmaster128/tsp-networks/blob/master/InstallSubstrateFromSource.md#install-substrate-from-source and have no idea what Metadata_metadata is
The text was updated successfully, but these errors were encountered: