Mokhtar Naamani f3a066535a Merge branch 'master' into sumer-new-substrate-update-apps 3 سال پیش
..
src f3a066535a Merge branch 'master' into sumer-new-substrate-update-apps 3 سال پیش
CHANGELOG.md e17c2a496f runtime: update CHANGELOG 4 سال پیش
Cargo.toml c5e92a80fc runtime: upgrade: multiple minor fixes 3 سال پیش
README.md da3243fa0a build scripts: use correct rust nightly toolchain 4 سال پیش
build.rs 39c9c4d2a4 node: upgrade version to v2.0.1 3 سال پیش
runtime-banner.svg 2a532261d6 update README 5 سال پیش

README.md

Joystream Runtime

Joystream Runtime

The runtime is the code that defines the consensus rules of the Joystream protocol. It is compiled to WASM and lives on chain. Joystream node execute the code's logic to validate transactions and blocks on the blockchain.

When building joystream-node as described in ../node/README.md, in addition to the joystream-node binary being built the WASM blob artifact is produced in:

./target/release/wbuild/joystream-node-runtime/joystream_node_runtime.compact.wasm

Deployment

Deploying the compiled runtime on a live system can be done in one of two ways:

  1. By creating a proposal for upgrading the Joystream runtime, which will then be voted on by the council. If the proposal is approved, the upgrade will go through after a grace period. When the Joystream platform is live, this will be the only way to upgrade the chain's runtime code.

  2. By creating an extrinsic (transaction) signed with the sudo key invoking system::setCode(). This can be done either from the Pioneer extrinsics tab, or directly with an admin script. This way of upgrading the runtime code is intended for development and testnet phases only.

Versioning the runtime

Versioning of the runtime is set in runtime/src/lib.rs For detailed information about how to set correct version numbers when developing a new runtime, see this