Here are the instructions for creating your own multi-node network on your local machine:
Run the following commands on Debian9
sudo apt-get install -y curl make bubblewrap pkg-config postgresql m4 libgmp-dev libffi-dev libjemalloc-dev libpq-dev libssl-dev libsodium-dev cargo lib32z1-dev python3 python3-pip git unzip libbz2-dev psmisc apt-transport-https ca-certificates curl software-properties-common gnupg2 bc
curl -fsSL https://download.docker.com/linux/debian/gpg | sudo apt-key add -
sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/debian $(lsb_release -cs) stable"
sudo apt update
sudo apt install -y docker-ce
sudo usermod -aG docker ${USER}
- Logout and log back in
pip3 install --user readchar jinja2 docker inflect click natsort
wget https://golang.org/dl/go1.15.3.linux-amd64.tar.gz
sudo tar -C /usr/local/ -xzf go1.15.3.linux-amd64.tar.gz
echo "export PATH=$PATH:/usr/local/go/bin" > ~/.profile
source ~/.profile
sudo bash -c "sh <(curl -sL https://raw.githubusercontent.com/ocaml/opam/master/shell/install.sh)"
git clone https://github.com/MinaProtocol/mina.git
cd mina
git submodule update --init --recursive
make setup-opam
eval $(opam env)
LIBP2P_NIXLESS=1 make build
When rebuilding in a new session
eval $(opam env)
LIBP2P_NIXLESS=1 make build
To run the network locally
./scripts/run_local_network.sh --transactions
To learn how to run different nodes in Mina, look inside the run_local_network.sh script.