Post
Topic
Board Development & Technical Discussion
Merits 2 from 1 user
Re: Testing the blockchain, how?
by
mocacinno
on 22/10/2018, 12:34:00 UTC
⭐ Merited by bones261 (2)
..or do you mean testing an application that used one of the existing crypto currencies blockchains to accept payments, store smart contracts or store data?

Most establised crypto currencies have a main net, a testnet and regtest mode

Yes, I mean testing applications on top of blockchain. Sorry for the sloppy question...

no problem Smiley
I was still editing my respons while you were already quoting it (a bad habit of me).
I guess the answer was given in my previous post:

- regtest mode is a local environment, you start a bitcoin (or altcoin) daemon in regtest mode and immediately generate one or more blocks. These coins are 100% local, and can be used to test out application. You need to connect to the daemon that was started in regtest mode in order to run your tests.

- the testnet is a real network. Most existing coins have several people running a testnet node, there are a couple of miners that mine testnet blocks. The testnet usually behaves exactly like the main net, except it's usually a bit less predicatable due to fluctuating hashrate and other people using it for their own tests. Testnet coins are worthless to Smiley

I prefer testing on the testnet, since it mimics the main net much closer than running a daemon in regtest mode.