The code for my thesis.
pip install -r requirements.txt
Using virtualenv
is recommended.
pytest
is used to run the tests, for example:
pytest
to run all testspytest tests/test_consensus.py
for a single filepytest tests/test_consensus.py::test_acs
for a single test
- First start the discovery server
python -m src.discovery
. - Then start at least 4 nodes
python -m src.node PORT N T [FLAGS]
, the port number must be unique and the valuesN
andT
must be the same on all the nodes. For examplepython -m src.node 12345 4 1 --test acs -v
. For more information, see the helppython -m src.node -h
.