Skip to content
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.

Wasm runtime contains a runtime_apis custom section but no runtime_version section #14223

Closed
2 tasks done
tomaka opened this issue May 25, 2023 · 1 comment
Closed
2 tasks done

Comments

@tomaka
Copy link
Contributor

tomaka commented May 25, 2023

Is there an existing issue?

  • I have searched the existing issues

Experiencing problems? Have you tried our Stack Exchange first?

  • This is not a support question.

Description of bug

The Rococo v2.2 genesis runtime contains a runtime_apis custom section but no runtime_version section.
I've also noticed the problem with the Nodle genesis runtime.

This problem does not exist with the Westend, Kusama or Polkadot runtimes.

I've uploaded the decompressed Rococo v2.2 genesis runtime converted to ASCII here: https://gist.github.com/tomaka/52dfe5fd4588eecdf57b4418dce48483

According to the Wasm spec, a custom section contains: a 0 byte (indicating a custom section), then the length of the section, then the length of the name of the section, then the name, then the rest of the section.
See https://www.w3.org/TR/2022/WD-wasm-core-2-20220419/binary/modules.html#custom-section

If I grep 12, 114, 117, 110, 116, 105, 109, 101, 95, 97, 112, 105, 115 (12 bytes followed with runtime_apis) in the Rococo runtime uploaded above, there's one result.
But if I grep 15, 114, 117, 110, 116, 105, 109, 101, 95, 118, 101, 114, 115, 105, 111, 110 (15 bytes followed with runtime_version), there's no result.

Steps to reproduce

No response

@bkchr
Copy link
Member

bkchr commented May 25, 2023

The rococo v2_2 chain spec was probably generated without this commit: paritytech/polkadot@2da9a7e

The commit adding the v2_2 chain spec was added one day later, probably not including the commit above: paritytech/polkadot@cc080f0

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants