LayerXcom / cbc-casper-simulator

CBC Casper simulator
MIT License
5 stars 1 forks source link

CBC Casper Simulator

CircleCI

CBC Casper simulator & visualizer

Mission

Simulator of chain-based consensus protocols to investigate the trade-offs of propeties by changing parameters. The target properties are:

Parameters (or design choices) of protocols are:

Requirements

Getting started

CBC Simulator depends on Graphviz which is Graph Visualization Software.

You can install Graphviz via Homebrew in macOS.

brew install graphviz
pip install -r requirements.txt
python main.py

This will generate output.yml by default. You can specify your simulation parameters file and output file via these options.

python main.py -i cbc_casper_simulator/examples/intput.yml -o output.yml

For more details, see spec directory.

Run tests

pip install -r requirements-test.txt -r requirements.txt
pytest