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
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.
-
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!– sadtrollJun 21, 2022 at 18:16
-
Really depends what you're trying to test. A private testnet still has use.– jtgrassie ♦Jun 22, 2022 at 1:49
-
-
Regtest is most useful for automation/integration testing. A private testnet for more thorough, real-world testing.– jtgrassie ♦Jun 24, 2022 at 5:28