- src/ Contains the python source code files
- src/bcns Contains the core classes of the simulator
- src/run_eval.py
This is the entry point, you can run the simulator by chosing a configuration. For example:
- python3 run_eval.py -c "2" #for the P2P configuration or
- python3 run_eval.py -c "2-c" #for the Coordinated configuration
Configurations can be modified or added at src/evaluation/SimulationConfigs.py
-
evaluation_results/ contains the dataframes that contain all simulation results. These dataframes can be read and the results can be plotted using the notebook (BCNS-PLOTTER.ipynb)
-
Data of the simulations in the paper and the plotter can be found at: https://drive.google.com/drive/u/4/folders/10ychGyYtrcoShLG9UmcTFnzCHsF3EWUj
Thanks!
Please consider using the fllowing Bibtex:
@misc{alzayat2021BCNS,
title={Modeling Coordinated vs. P2P Mining: An Analysis of Inefficiency and Inequality in Proof-of-Work Blockchains},
author={Mohamed Alzayat and Johnnatan Messias and Balakrishnan Chandrasekaran and Krishna P. Gummadi and Patrick Loiseau},
year={2021},
eprint={2106.02970},
archivePrefix={arXiv},
primaryClass={cs.CR}
}
Mohamed Alzayat alzayat@mpi-sws.org
Johnnatan Messias johnme@mpi-sws.org
Balakrishnan Chandrasekaran b.chandrasekaran@vu.nl
We thank Antoine Kaufmann (MPI-SWS) for his earl-on suggestions that influenced the simulator architecture.