Skip to main content

PoolSim: A Discrete-Event Mining Pool Simulation Framework

  • Conference paper
  • First Online:
Mathematical Research for Blockchain Economy

Part of the book series: Springer Proceedings in Business and Economics ((SPBE))

Abstract

In Proof-of-Work cryptocurrencies, fair reward distribution within mining pools has become a popular area of research. Aside from a theoretical grounding, mining pool reward scheme research has commonly involved discrete event simulations of deterministic miner behaviour under different reward schemes. However, until now researchers have been left with the tedious task of developing their own mining pool simulation software, a rather time-consuming and potentially extensive undertaking, as miner behaviour becomes more complex. We present PoolSim, an open-source and very extensible discrete event simulation framework for modelling different behaviours of miners under any reward distribution scheme. By utilising this framework for different hypothetical mining scenarios, we showcase that mining pool reward scheme analysis indeed remains an exciting area for future research. Further, we believe that PoolSim will vastly increase productivity of researchers focusing on mining pools.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 129.00
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 169.00
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info
Hardcover Book
USD 169.99
Price excludes VAT (USA)
  • Durable hardcover edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Notes

  1. 1.

    Total cryptocurrency market capitalisation. Source: https://coinmarketcap.com. Accessed: 2019-03-06.

  2. 2.

    1 MH/s = \(10^6\) hashes per second.

  3. 3.

    1 GH/s = \(10^9\) hashes per second.

  4. 4.

    https://github.com/samwerner/PoolSim. Accessed: 2019-03-02.

  5. 5.

    Ethpool refers to this as a predictable solo mining pool, however, we shall employ the term “queue-based pool” as introduced in [14].

  6. 6.

    Minus the pool operator fee.

  7. 7.

    As the performed simulations did not involve a PPS reward scheme under which an operator fee would indeed be relevant, we decided to omit this variable.

  8. 8.

    We would like to remark that PoolSim has the capabilities of simulating each of the attack scenarios presented in Sect. 3, however, for brevity we shall only focus on the work by [14].

  9. 9.

    It should be noted that we have made small modifications to the simulation setup compared to the original work for performance gains.

References

  1. Buterin, V.: Ethereum: a next-generation smart contract and decentralized application platform. https://github.com/ethereum/wiki/wiki/White-Paper (2014). Accessed 22 Aug 2016

  2. Cap, C.M.: Coin market cap. https://coinmarketcap.com (2019). Accessed 05 Apr 2019

  3. Chávez, J., Rodrigues, C.: Hopping among pools in the bitcoin mining network. SIJ Trans. Comput. Netw. Commun. Eng. (CNCE) 3(2), 22–27 (2015)

    Google Scholar 

  4. Chávez, J.J.G., da Silva Rodrigues, C.K.: Automatic hopping among pools and distributed applications in the bitcoin network. In: 2016 XXI Symposium on Signal Processing, Images and Artificial Vision (STSIVA), pp. 1–7. IEEE (2016)

    Google Scholar 

  5. Courtois, N.T., Bahack, L.: On subversive miner strategies and block withholding attack in bitcoin digital currency. arXiv:1402.1718 (2014)

  6. Eyal, I.: The miner’s dilemma. In: 2015 IEEE Symposium on Security and Privacy (SP), pp. 89–103. IEEE (2015)

    Google Scholar 

  7. Lewenberg, Y., Bachrach, Y., Sompolinsky, Y., Zohar, A., Rosenschein, J.S.: Bitcoin mining pools: a cooperative game theoretic analysis. In: Proceedings of the 2015 International Conference on Autonomous Agents and Multiagent Systems, pp. 919–927. International Foundation for Autonomous Agents and Multiagent Systems (2015)

    Google Scholar 

  8. Luu, L., Saha, R., Parameshwaran, I., Saxena, P., Hobor, A.: On power splitting games in distributed computation: the case of bitcoin pooled mining. In: Proceedings of the 28th IEEE Computer Security Foundations Symposium (CSF 2015), pp. 397–411. IEEE, IEEE Computer Society, Verona, Italy (2015)

    Google Scholar 

  9. Nakamoto, S.: Bitcoin: a peer-to-peer electronic cash system. Dec 2008, https://bitcoin.org/bitcoin.pdf. Accessed 01 Aug 2015

  10. Rosenfeld, M.: Analysis of bitcoin pooled mining reward systems. arXiv:1112.4980 (2011). Accessed 16 Oct 2018

  11. Schrijvers, O., Bonneau, J., Boneh, D., Roughgarden, T.: Incentive compatibility of bitcoin mining pool reward functions. In: Financial Cryptography and Data Security (2016)

    Google Scholar 

  12. Wang, W., Hoang, D.T., Xiong, Z., Niyato, D., Wang, P., Hu, P., Wen, Y.: A survey on consensus mechanisms and mining management in blockchain networks. arXiv:1805.02707 (2018)

  13. Werner, S., Pritz, P., Zamyatin, A., Knottenbelt, W.: Uncle traps: harvesting rewards in a queue-based ethereum mining pool. Cryptology ePrint Archive preprint: 2019/070. https://eprint.iacr.org/2019/070.pdf (2019). Accessed 02 Mar 2019

  14. Zamyatin, A., Wolter, K., Werner, S., Harrison, P.G., Mulligan, C.E., Knottenbelt, W.J.: Swimming with fishes and sharks: beneath the surface of queue-based ethereum mining pools. In: 2017 IEEE 25th International Symposium on Modeling, Analysis, and Simulation of Computer and Telecommunication Systems (MASCOTS), pp. 99–109. IEEE, IEEE Computing Society, Banff, Canada, Sept 2017. https://doi.org/10.1109/MASCOTS.2017.22

Download references

Acknowledgements

The authors would like to thank Paul Pritz for helpful feedback. This research is supported by funding from the Brevan Howard Centre for Financial Analysis.

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Sam M. Werner .

Editor information

Editors and Affiliations

Rights and permissions

Reprints and permissions

Copyright information

© 2020 Springer Nature Switzerland AG

About this paper

Check for updates. Verify currency and authenticity via CrossMark

Cite this paper

Werner, S.M., Perez, D. (2020). PoolSim: A Discrete-Event Mining Pool Simulation Framework. In: Pardalos, P., Kotsireas, I., Guo, Y., Knottenbelt, W. (eds) Mathematical Research for Blockchain Economy. Springer Proceedings in Business and Economics. Springer, Cham. https://doi.org/10.1007/978-3-030-37110-4_12

Download citation

Publish with us

Policies and ethics