-
Build and run your own docker image using docker-compose file. Build time could take up to 60 min.
git clone https://github.com/randombishop/wika_node.git docker-compose -p my_wika_node -f docker-compose.yaml up --build
-
Pull and run latest image of wika test node using docker-compose file
git clone https://github.com/randombishop/wika_node.git docker-compose -p my_wika_node -f docker-compose.yaml up
-
Follow substrate documentation to install dependencies (do #1 only) https://substrate.dev/docs/en/knowledgebase/getting-started/
-
For example, in apt world
sudo apt update sudo apt install -y git clang curl libssl-dev llvm libudev-dev
-
Install and setup rust
curl https://sh.rustup.rs -sSf | sh source ~/.cargo/env rustup default stable rustup update rustup update nightly rustup target add wasm32-unknown-unknown --toolchain nightly
-
Git clone substrate
Current substrate repo compatible tag is
monthly-2021-08
git clone https://github.com/paritytech/substrate.git cd substrate git checkout monthly-2021-08 cd ..
-
Git clone wika-node side by side with substrate
git clone https://github.com/randombishop/wika_node.git
-
Compile it Should take 20 minutes to 1 hour depending on your number of CPUs, also note that a minimum of 4Gb of RAM is required here.
cd wika_node cargo build or cargo build --release
./target/debug/wika-node --tmp --dev -lOWNERS=debug -lLIKE=debug
or
./target/release/wika-node --tmp --dev -lOWNERS=debug -lLIKE=debug
-
Add Alice's private keys to the owner pallet.
curl http://localhost:9933 -H "Content-Type:application/json;charset=utf-8" -d "@./dev_keys/alice_ownr.json"
-
Use the owners pallet addVerifier transaction to add Alice public key as a verifier.
(https://substrate.dev/docs/en/tutorials/start-a-private-network/customspec)
.target/release/wika-node --chain test build-spec > specfile.json
(https://substrate.dev/docs/en/tutorials/start-a-private-network/customchain)
./target/release/wika-node \
--public-addr /ip4/x.x.x.x \
--base-path /var/db_wika/test1 \
--telemetry-url 'wss://telemetry.polkadot.io/submit/ 0' \
--name xyz1 \
--chain specfile.json \
--bootnodes /ip4/z.z.z.z/tcp/30334/p2p/xyz