Bitcoin Forum
July 13, 2024, 03:26:42 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
  Home Help Search Login Register More  
  Show Posts
Pages: [1]
1  Bitcoin / Development & Technical Discussion / Selfish miner implementation on: May 22, 2018, 09:11:43 AM
Hello,
im an exprienced software developer but im new to bitcoin core
as part of my 2nd degree theses i wanna implement a selfish miner such as mentioned in this paper - https://arxiv.org/abs/1311.0243
the general idea is pretty known in the community -
every selfish miner in a selfish miners pool maintains 2 different blockchains, and when a new block is found, the selfish pool miners dont necessarily always tell the rest of the network about it.

i downloaded the bitcoin core code, its a pretty big and not that organized code and seems to me that i only need to make a few changes
1. give the node another blockchain
2. patch the code of receiving a new block so that it updates both blockchains according to the algorithm
3. patch the code that broadcasts a new found block so that it wont always broadcast it to everyone etc...

my question is - can someone point me to the places in the code where these features are found?
would also appreciate any other suggestions or tips regarding the implementation

thanks
Pages: [1]
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!