This repo contains the framework for running a 6 nodes Spacemesh testnet locally on one computer. It contains a setup script that clones and builds all the relevant repositories required for running a localnet. To learn more about the Spacemesh cryptocurrency visit https://spacemesh.io .
- git
- go lang v1.11+
- python3
- virtualenv + pip
- Docker. Ubuntu. For OS X download from https://www.docker.com/
brew install git
brew install go
brew install python
brew install docker
sudo easy_install pip
pip install virtualenv
-
Clone this repo to your computer
-
From the shell run:
setup.sh
- Create virtual environment for running the testnet
virtualenv --python=python3 venv
- Activate virtual env and install requirements
source venv/bin/activate
pip install -r requirements.txt
python testnet.py
Logs are available in the logs directory.
- Navigate to CLIWallet directory in your go
srcdirectory.
cd $GOPATH/src/github.com/spacemeshos/CLIWallet
- Run
./CLIWallet
- You should see a list of accounts. Choose one. e.g. enter
anton - Enter
accountto view anton's account balance - Enter
transfer coinsto transfer coin to another account and follow the on-screen instructions
Please follow the steps in our localnet guide.
- Docker cannot run without sudo: please refer to this guide
- Fluentd container does not boot: make sure
logsdir exists and has{user}rw permissions - Nodes stop producing blocks after 30 min - this is an issue with dockers DNS resolving, adding custom dns address to docker config should solve this problem

