Crates.io | polkadot-omni-node |
lib.rs | polkadot-omni-node |
version | |
source | src |
created_at | 2024-10-08 12:49:49.590991 |
updated_at | 2025-01-29 22:08:10.070003 |
description | Generic binary that can run a parachain node with u32 block number and Aura consensus |
homepage | |
repository | |
max_upload_size | |
id | 1401106 |
Cargo.toml error: | TOML parse error at line 18, column 1 | 18 | autolib = false | ^^^^^^^ unknown field `autolib`, expected one of `name`, `version`, `edition`, `authors`, `description`, `readme`, `license`, `repository`, `homepage`, `documentation`, `build`, `resolver`, `links`, `default-run`, `default_dash_run`, `rust-version`, `rust_dash_version`, `rust_version`, `license-file`, `license_dash_file`, `license_file`, `licenseFile`, `license_capital_file`, `forced-target`, `forced_dash_target`, `autobins`, `autotests`, `autoexamples`, `autobenches`, `publish`, `metadata`, `keywords`, `categories`, `exclude`, `include` |
size | 0 |
This is a white labeled implementation based on polkadot-omni-node-lib
.
It can be used to start a parachain node from a provided chain spec file. It is only compatible with runtimes that use block
number u32
and Aura
consensus.
Download & expose it via PATH
:
# Download and set it on PATH.
wget https://github.com/paritytech/polkadot-sdk/releases/download/<stable_release_tag>/polkadot-omni-node
chmod +x polkadot-omni-node
export PATH="$PATH:`pwd`"
Compile & install via cargo
:
# Assuming ~/.cargo/bin is on the PATH
cargo install polkadot-omni-node
A basic example for an Omni Node run starts from a runtime which implements the sp_genesis_builder::GenesisBuilder
.
The interface mandates the runtime to expose a named-preset
.
Note: chain-spec-builder
binary is published on crates.io
under
staging-chain-spec-builder
due to a name conflict.
Install it with cargo
like bellow :
cargo install staging-chain-spec-builder
Omni Node expects for the chain spec to contain parachains related fields like relay_chain
and para_id
.
These fields can be introduced by running staging-chain-spec-builder
with additional flags:
chain-spec-builder create --relay-chain <relay_chain_id> --para-id <id> -r <runtime.wasm> named-preset <preset_name>
And now with the generated chain spec we can start the node in development mode like so:
polkadot-omni-node --dev --chain <chain_spec.json>
Polkadot SDK Stable 2412