/deeper-chain

deeper chain is the blockchain layer for deeper network.

Primary LanguageRustApache License 2.0Apache-2.0

deeper chain node

Build Codecov

deeper chain node is built on top of Substrate v4.0.0 full node

Local Development

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

Run

Single Node Development Chain

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

Multi-Node Local Testnet

If you want to see the multi-node consensus algorithm in action, refer to our Start a Private Network tutorial.

Wallet Integration

See this doc

Update weights.rs in pallet

  1. Build deeper-chain with --features runtime-benchmarks
cd cli/
cargo build --release --features runtime-benchmarks
  1. 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