Are there any other platforms or tools beside TestNet where I can simulate and analyze various attacks like double spending (finney/block withholding attacks etc.)?

  • Do you know about regtest mode? – Nate Eldredge Feb 16 '15 at 6:43
  • Yes, i know about regtest . It is somewhat similar to testnet except that it allows faster generation of blocks. What i am looking for is a tool that can help me model various attacks like >50% , selfish mining and so on. – Sadia Khalil Feb 16 '15 at 7:04

The regtest operational mode of bitcoind is not as similar to testnet as you might think. The regtest mode offers you a totally local Bitcoin blockchain which is easily controlled by your local bitcoind with low difficulty. According to this post, it is furthermore possible to build a network out of multiple local bitcoind instances, such that you have a local Bitcoin network of your own.

You can control this network freely, but you can only simulate behavior that bitcoind allows you to assume. I am not aware of whether or not this is sufficient for your cases. If not, you could maybe try to fork bitcoind and somehow add the behavior you want to achieve...

  • Not sure if a regression testing mode (regtest) should be used, see en.bitcoin.it/wiki/Running_Bitcoin. Rolling out a private Bitcoin network "isolated from the Internet" could be used to provide an environment for stimulating and monitoring attacks. – skaht Feb 16 '15 at 17:08
  • 1
    So will it be possible to simulate attacks like 51% on regtest mode ? – Sadia Khalil Feb 17 '15 at 5:04

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.