deeper chain node is built on top of Substrate v4.0.0 full node
Get the required compiler version and wasm component before compiling.
rustup default nightly-2022-01-01
rustup target add wasm32-unknown-unknown --toolchain nightly-2022-01-01
# compile
cargo build --release
Purge any existing dev chain state:
./target/release/deeper-chain purge-chain --dev
Start a dev chain:
./target/release/deeper-chain --dev
Or, start a dev chain with detailed logging:
RUST_LOG=debug RUST_BACKTRACE=1 ./target/release/deeper-chain -lruntime=debug --dev
If you want to see the multi-node consensus algorithm in action, refer to our Start a Private Network tutorial.
See this doc
- Build deeper-chain with
--features runtime-benchmarks
cd cli/
cargo build --release --features runtime-benchmarks
- Run shell command to update weights.rs
./target/release/deeper-chain benchmark pallet \
--chain=dev \
--steps=50 \
--repeat=20 \
--pallet=pallet_staking \
--extrinsic='*' \
--execution=wasm \
--wasm-execution=compiled \
--heap-pages=4096 \
--output=./pallets/staking/src/weights.rs \
--template=./.maintain/frame-weight-template.hbs