Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save garethtdavies/7a2406e5f2ccf55ebdf0171b1fc6d50f to your computer and use it in GitHub Desktop.
Save garethtdavies/7a2406e5f2ccf55ebdf0171b1fc6d50f to your computer and use it in GitHub Desktop.

Here are the instructions for creating your own multi-node network on your local machine:

Run the following commands on Debian9

  1. 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
  2. curl -fsSL https://download.docker.com/linux/debian/gpg | sudo apt-key add -
  3. sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/debian $(lsb_release -cs) stable"
  4. sudo apt update
  5. sudo apt install -y docker-ce
  6. sudo usermod -aG docker ${USER}
  7. Logout and log back in
  8. pip3 install --user readchar jinja2 docker inflect click natsort
  9. wget https://golang.org/dl/go1.15.3.linux-amd64.tar.gz
  10. sudo tar -C /usr/local/ -xzf go1.15.3.linux-amd64.tar.gz
  11. echo "export PATH=$PATH:/usr/local/go/bin" > ~/.profile
  12. source ~/.profile
  13. sudo bash -c "sh <(curl -sL https://raw.githubusercontent.com/ocaml/opam/master/shell/install.sh)"
  14. git clone https://github.com/MinaProtocol/mina.git
  15. cd mina
  16. git submodule update --init --recursive
  17. make setup-opam
  18. eval $(opam env)
  19. LIBP2P_NIXLESS=1 make build

When rebuilding in a new session

  1. eval $(opam env)
  2. LIBP2P_NIXLESS=1 make build

To run the network locally

  1. ./scripts/run_local_network.sh --transactions

To learn how to run different nodes in Mina, look inside the run_local_network.sh script.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment