Skip to content

Realm-3/realm3-old

Repository files navigation

Realm3 Node

Features

  • Consensus related pallets: Babe & GRANDPA
  • Staking related pallets: staking, session, authorship, im-online, offences, utility
  • Governance related pallets: collective, membership, elections-phragmen, democracy, treasure

Notes: The code is un-audited and not production ready, use it at your own risk.

Getting Started

Follow the steps below to get started.

Rust Setup

First, complete the Dev Docs Installation.

Build and Run

Use the following command to build the node and run it after build successfully:

cargo build --release
./target/release/realm3 --dev

Run public testnet

  • Modify the genesis config in chain_spec.rs
  • Build spec, ./target/release/realm3 build-spec --chain staging > stencil-staging.json
  • Change original spec to encoded raw spec, ./target/release/realm3 build-spec --chain=stencil-staging.json --raw > stencil-staging-raw.json
  • Start your bootnodes, node key can be generate with command ./target/release/realm3 key generate-node-key.
    ./target/release/realm3 \
         --node-key <your-node-key> \
         --base-path /tmp/bootnode1 \
         --chain node/specs/customSpecRaw.json \
         --name bootnode1
  • Start your initial validators,
    ./target/release/realm3 \
        --base-path  /tmp/validator1 \
        --chain   customSpecRaw.json \
        --bootnodes  /ip4/<your-bootnode-ip>/tcp/30333/p2p/<your-bootnode-peerid> \
          --port 30336 \
          --ws-port 9947 \
          --rpc-port 9936 \
        --name  validator1 \
        --validator
  • Insert session keys
  • Attract enough validators from community in waiting
  • Call force_new_era in staking pallet with sudo, rotate to PoS validators
  • Enable governance, and remove sudo
  • Enable transfer and other functions

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages