|
||
---|---|---|
lib | ||
src | ||
tests | ||
.flake8 | ||
.gitignore | ||
.gitmodules | ||
LICENSE | ||
README.md | ||
pyrightconfig.json | ||
requirements.txt | ||
setup.py | ||
test1.py |
README.md
chia-blockchain
Python 3.7 is used for this project.
Install
# for Debian-based distros
sudo apt-get install build-essential cmake python3-dev --no-install-recommends
git submodule update --init --recursive
cd lib/chiavdf
# Install libgmp, libboost, and libflint, and then run the following
sh install.sh
python3 -m venv .venv
. .venv/bin/activate
pip install wheel
pip install .
pip install lib/chiapos
Run servers
Run the servers in the following order (you can also use ipython):
./lib/chiavdf/fast_vdf/vdf 8889
./lib/chiavdf/fast_vdf/vdf 8890
python -m src.server.start_plotter
python -m src.server.start_timelord
python -m src.server.start_farmer
python -m src.server.start_full_node "127.0.0.1" 8002 "-f" "-t"
python -m src.server.start_full_node "127.0.0.1" 8004
python -m src.server.start_full_node "127.0.0.1" 8005
You can also run the simulation, which runs all servers at once.
./src/simulation/simulate_network.sh
Run tests
py.test tests -s -v
Run linting
flake8 src
pyright