This paper proposes iblock, a comprehensive C++ library for Bitcoin simulation, designed for OMNeT++. iblock offers superior efficiency and scalability with respect to state-of-the-art simulators, which are typically written in high-level languages. Moreover, the possible integration with other OMNeT++ libraries allows highly detailed simulations. We measure iblock's performance against a state-of-the-art blockchain simulator, proving that it is more efficient at the same level of simulation detail. We also validate iblock by using it to simulate different scenarios such as the normal Bitcoin operation and the selfish mine attack, showing that simulation results are coherent with theoretical expectations.
翻译:本文提出iblock——一个专为OMNeT++设计的综合性比特币仿真C++库。相较于通常采用高级语言编写的现有前沿仿真器,iblock在效率与可扩展性方面表现更优。此外,其与OMNeT++其他库的可集成性支持高精细度仿真。通过对比测试,我们验证了iblock在同等仿真精度下较前沿区块链仿真器具有更高效率。同时,我们运用iblock对比特币常规运行与自私挖矿攻击等场景进行仿真验证,结果表明仿真数据与理论预期具有一致性。