Quantifying the Feasibility Gap: A Data-Driven Simulation Study of Blockchain Performance in Rural Indian Agricultural Supply Chains Under Real Connectivity and Power Constraints
收藏资源简介:
BlockSim_Updated is a blockchain simulation tool built on top of the original BlockSim framework, which was created by Maher Alharby and Aad van Moorsel and later substantially improved by researchers at the University of Pisa. This version carries forward those improvements while extending the simulator's ability to model the Bitcoin protocol in a more realistic and detailed way. The simulator supports Segregated Witness (SegWit) at the consensus layer and uses a more accurate block propagation model, with block delay estimated through linear regression trained on nearly two years of real Bitcoin network data. It also introduces a new performance metric, the total reward per block, and adds two mining strategies, PROACTION and EVILACTION, that let researchers explore how self-interested or malicious mining behavior can affect network throughput and miner profitability. The project is written in Python and organized around a few core files: Main.py runs the simulation, InputsConfig.py lets users choose between different protocol models and set parameters, and Event.py handles the underlying event-driven simulation logic. The Models and Research folders contain the simulation's core logic and supporting materials. Each simulation run produces a timestamped Excel file with the results, which is why the repository contains a large number of dated output files from past runs.



