Skip to content

fennelLabs/Fennel-Protocol

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Fennel Protocol

Fennel Protocol is a decentralized communication distribution focusing on providing secure and resilient communications to chain-parallel organizations and applications.

Getting Started

Follow the steps below to get started. Make sure you have libclang installed:

Homebrew

brew install --with-toolchain llvm

Chocolatey

choco install llvm

Ubuntu

apt install libclang-dev

Repository Set-Up

After cloning this repository, be sure to include necessary submodules.

git submodule init
git submodule update

Rust Setup

If you do not already have Rust installed, with the nightly build set as default, complete the installation.

Following the installation of Rust, ensure your environment is defaulting to the nightly build:

rustup default nightly
rustup target add wasm32-unknown-unknown --toolchain nightly

Run

Use Rust's native cargo command to build and launch the template node:

cargo run --release -- --dev --tmp

Build

The cargo run command will perform an initial build. Use the following command to build the node without launching it:

cargo build --release

Run

The provided cargo run command will launch a temporary node and its state will be discarded after you terminate the process. After the project has been built, there are other ways to launch the node.

Single-Node Development Chain

This command will start the single-node development chain with persistent state:

./target/release/node-fennel-protocol --dev

Purge the development chain's state:

./target/release/node-fennel-protocol purge-chain --dev

Start the development chain with detailed logging:

RUST_BACKTRACE=1 ./target/release/node-fennel-protocol -ldebug --dev

Connect with Polkadot-JS Apps Front-end

Once the node is running locally, you can connect it with Polkadot-JS Apps front-end to interact with your chain. Click here connecting the Apps to your local node template.

Multi-Node Local Testnet

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

Run in Docker

First, install Docker and Docker Compose.

Then run the following command to start a single node development chain.

docker compose build; docker compose up -d

This command will firstly compile your code, and then start a local development network.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published