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