w3f / polkadot-wiki

The source of truth for Polkadot.
GNU General Public License v3.0
370 stars 2.22k forks source link

Suggest using the omni-node #5928

Open kianenigma opened 3 months ago

kianenigma commented 3 months ago

This is a bit of a moving target, so I expect some details with the omni-node to change, but it woudl be great if we can already use it in some of our tutorials.

@CrackTheCode016 mentioned in https://forum.polkadot.network/t/polkadot-parachain-omni-node-gathering-ideas-and-feedback/7823/4?u=kianenigma that it is fully possible to run a parachain with the omni node.

In the meantime, I am standardizing the usage in PBA. An example is: https://github.com/Polkadot-Blockchain-Academy/polkadot-sdk-assignment-template.

The general flow, to recap, is:

cargo install staging-chain-spec-builder

then, from a runtime template, you generate the .wasm file

then, you pass the runtime to the chain spec builder to generate the full chain spec

then you pass the chain spec file to omni node with --chain

CrackTheCode016 commented 3 months ago

Agreed, do you mean for stuff like template to core type guides?

(I don't seem to have access to the PBA repo btw)

Both are actually as simple as using cargo install - including the polkadot-parachain (from the Polkadot SDK repo) binary for now. When omninode is a published we can update as needed