Development Network
This guide walks through how to use fn dev
to run and manage local blockchain instance[s] for software development and testing purposes. Alternatively, developers can also develop and test on Anvil Testnet.
1. Prerequisites​
i) Install Golang​
Tips for Linux (Ubuntu)​
# first command needs to be run as root, rest as your normal user
wget https://go.dev/dl/go1.18.3.linux-amd64.tar.gz
sudo su
rm -rf /usr/local/go && tar -C /usr/local -xzf go1.18.3.linux-amd64.tar.gz
# exit root now
exit
# add to path. For more permanent you should add this line to bottom of your ~/.profile
export PATH=$PATH:/usr/local/go/bin
# check go version
go version
ii) Install Rust​
If already installed, please update to 1.63 or newer
rustup update
iii) Install System Specific Dependencies​
- Ubuntu
- Mac
sudo apt update && \
sudo apt upgrade -y && \
sudo apt install -y build-essential libleveldb-dev libssl-dev pkg-config clang libclang-dev librocksdb-dev
brew install openssl leveldb
2. Build Required Binaries​
Findora blockchain can run on both MacOS or Linux. The commands below will build all required binaries to start a local Findora blockchain.
git clone -b v0.3.29-release https://github.com/FindoraNetwork/platform && \
cd platform && \
make build_release
Please make sure to add all below binaries to your $PATH. By default, they will be copied to ~/.cargo/bin/
which should already be in your $PATH.
abcid
: Findora core protocol.tendermint
: Tendermint consensus engine.fn
: The core development tool for working with a Findora blockchain.
3. Run and manage local development cluster[s]​
Please use fn dev
to run and manage your local clusters, check the documentation on github for a detailed user guide.