1

I did not find much information about the regtest option for monerod. What does it actually do? What are the differences between testnet and regtest?

1 Answer 1

2

What does it actually do?

It runs in a "regression testing mode", which allows you to create a fake blockchain (i.e. it is not validated by other nodes), useful only for development and testing.

What are the differences between testnet and regtest?

Testnet is a public p2p blockchain, other nodes on the testnet network validate transactions and blocks.

4
  • aah I see it. I got confused because I saw a tutorial about creating a private testnet and I thought that was the way to go if I wanted to create a fake blockchain. Thank you!
    – sadtroll
    Commented Jun 21, 2022 at 18:16
  • Really depends what you're trying to test. A private testnet still has use.
    – jtgrassie
    Commented Jun 22, 2022 at 1:49
  • When should I use a private testnet or regtest?
    – sadtroll
    Commented Jun 22, 2022 at 23:47
  • Regtest is most useful for automation/integration testing. A private testnet for more thorough, real-world testing.
    – jtgrassie
    Commented Jun 24, 2022 at 5:28

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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