A blockchain simulator based on SimPy in python 3.
-
Clone this project or download
-
Create a new virtualenv for this project
-
Install all the python package requirements:
pip install -r requirements.txt
-
transactions.py : A class for Transactions representation
-
blocks.py : A class for Block representation
-
network_state_graph.py: A class for creating network topology with latency
-
blockchain_simulation.py: Main script for running the simulator
Open Terminal(Linux) or Command(Windows) and type:
python blockchain_simulation.py
Currently, for changing the parameters of the simulation, we need to change the value of parameters in the blockchain_simulation.py
Time | nodeID | Event | Data Type | Data ID
If you would like to contribute on the BlockSIM project,
- Fork this repository
- Clone the repository
- Make the changes and commit those changes
- Push the committed work and
- Send the pull request.
Our core developer team will review and merge the committed work into the main code base. Please make sure your contribution is useful and relevant before submitting.
The BlockSIM project is licensed under MIT License and also included in our repository in the LICENSE.md