Skip to content
This repository has been archived by the owner on Nov 18, 2023. It is now read-only.

Zentanetwork is a forkless Proof of Stake consensus for communication and data storage.

License

Notifications You must be signed in to change notification settings

ZentaChain/zentanetwork-archived

Repository files navigation

⚡ 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 (Alnitak - POS)

# Start the main-net of Alnitak
./target/release/zentachain --chain alnitak

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

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.

License

GNU Affero General Public License v3.0

license

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •  

Languages