Go to file
fchirica 5247032828 Improved timelord logic 2019-10-11 01:16:41 +03:00
lib Improved timelord logic 2019-10-11 01:16:41 +03:00
src Improved timelord logic 2019-10-11 01:16:41 +03:00
tests Merge 2019-10-10 13:04:52 +09:00
.flake8 New blockchain class implementation 2019-09-24 15:01:32 +09:00
.gitignore .gitignore changes 2019-10-10 13:10:18 +09:00
.gitmodules Start refactoring using aiter 2019-08-15 17:31:19 -03:00
LICENSE Initial commit 2019-07-16 17:32:40 +09:00
README.md Merge branch 'new_pot' of github.com:Chia-Network/chia-blockchain into new_pot 2019-10-10 13:51:26 +09:00
pyrightconfig.json Timelord processes 2019-08-14 16:02:15 -03:00
requirements.txt Separate config 2019-09-17 18:17:11 +09:00
setup.py Separate config 2019-09-17 18:17:11 +09:00
test1.py More additions to networking 2019-09-12 13:31:49 +09:00

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