⚡ Zentanetwork ⚡
Zentanetwork is a forkless Proof of Stake (PoS) consensus for communication and data storage. The construction of a forkless network enables Zentalk and Zentavault to make the perfect provision for Zentachain ecosystem.
Getting Started Zentanetwork
# Clone Zentanetwork repository
git clone https://github.com/ZentaChain/Zentanetwork
# This command is a fast check
cargo test --all
# This command will firstly compile the code
cargo build --release
Local-network
# Start the local-net
./target/release/zentachain --local
Multi local-network
# Start Alice
./target/release/zentachain --chain local --alice /tmp/alice
# Start Bob with the boostnode id
./target/release/zentachain chain local --bob /tmp/bob --port 30334 --bootnodes '/ip4/127.0.0.1/tcp/30333/p2p/BOOTNODEID'
Development-network
# Run single-node development-net
./target/release/zentachain --dev
Zajin-network (Alpha - POA)
# Run single-node Zajin-net
$ ./target/release/zentachain --chain zajin
Zentachain Main-network (Zikaron - POS)
# Start the main-net
./target/release/zentachain --chain zikaron
Zentachain Main-network (Katsumi - POS)
# Start the main-net of Katsumi
./target/release/zentachain --chain katsumi
Purge Database of the Network
# Purging chain-database
./target/release/zentachain purge-chain --"chain-ID"
Run in Docker
First, install Docker and Docker Compose.
Then run the following command to start a single node development chain.
./scripts/docker_run.sh
# Run node without re-compiling
./scripts/docker_run.sh ./target/release/zentachain --dev --ws-external
# Purge the local dev chain
./scripts/docker_run.sh ./target/release/zentachain purge-chain --dev
# Check whether the code is compilable
./scripts/docker_run.sh cargo check
M1 Machine - Build Error
If you are using a M1 (System-on-a-Chip) in with machine please visit before building the node Apple M1 Error Handling otherwise you will not be able to build and compile the network.
Error: E0463 Can't find std.
# Be sure you have add nightly run the command:
rustup target add wasm32-unknown-unknown --toolchain nightly
OR
rustup target add wasm32-unknown-unknown --toolchain nightly-2021-05-23
Help
# For a breakdown of the node command-line options
./target/release/zentachain --help
Advanced Introduction
For deeper insights into the Zentanetwork
Status
Under active development.