This simulator program is a modification from the SimBlock simulator, intended to show the mining process that occurs using the Proof-of-Work concept. The Block creation in modified SimBlock is using a difficulty factor based on the number of leading-zero as the target hash.
For example:
Difficulty = 1, meaning to find one leading-zero as the target hash.
Difficulty = 2, meaning to find two leading-zero as the target hash, etc.
You can change this Difficulty setting at SimulationConfiguration.java file on the setting folder.
You can see the different JSON output when finish re-compile this simulator.
Note to remember, the higher the Difficulty will need more time to re-compile the simulator.
Here are the sample output of the differences that we made. We run the modified simulator and create 5 blocks and 3 nodes.
Original SimBlock [output.json] | Modified SimBlock [output.json] |
---|---|
Original SimBlock [output.json] | Modified SimBlock [output.json] |
---|---|
SimBlock is an open source blockchain network simulator, developed by Distributed Systems Group, Tokyo Institute of Technology.
Original source code is available: https://dsg-titech.github.io/simblock/
SimBlock has a visualization tool, by which you can see the transition of block propagation.
SimBlock is licensed under the Apache License, Version2.0.
E-mail: dsg-titech at googlegroups.com