Difference between regtest and testnet

4

I'm not sure what is the difference between regtest and testnet, they seem are different things but i cant find the different between them.

Does one have more stuff than others?

On the regtest, peer are seem to not being found.

zhiyan114

Posted 2018-02-03T20:45:23.390

Reputation: 528

Answers

4

Regtest is a network designed solely to be private and for testing only. You can create a private regtest network and do testing and experimentation with it. It is not a public network and has no peers for you to connect to.

Andrew Chow

Posted 2018-02-03T20:45:23.390

Reputation: 40 910

So can i make another peer and connect directly to it?zhiyan114 2018-02-03T21:03:01.277

Yes. You can use the addnode command and option to have nodes connect to each other. You can use the -connect startup option to make a node only connect to another node.Andrew Chow 2018-02-03T21:07:53.390

It keep showing connecting to peer or is that normal? After i made a connectionzhiyan114 2018-02-03T21:38:52.847

Does it say that there is a connection?Andrew Chow 2018-02-03T21:41:45.093

yes, by the way, how do i add coin to it since i cant mine on it?zhiyan114 2018-02-03T22:10:23.403

1You can mine on it. Bitcoin Core has a built in miner specifically for regtest. Use the generate command.Andrew Chow 2018-02-03T22:18:48.047