13

I just tried running geth in developer mode on testnet.

 ~ $ geth --dev --testnet
F0127 21:07:16.947591    6407 flags.go:467] dev and testnet are mutually exclusive

I wasn't aware of the actual meaning behind the dev flag, from the help:

--testnet   Morden network: pre-configured test network with modified starting nonces (replay protection)
--dev       Developer mode: pre-configured private network with several debugging flags

What's the deal with the developer mode? What debugging flags are available? And what's the difference with the morden testnet?

I want to start developing smart contracts. Which is the best one to choose?

2 Answers 2

12

The Morden testnet is the public Frontier testnet, meaning there are other miners, and other people will be able to see your contracts. It is important to note that you should not use the same accounts on the testnet as you do on the live network, or you will be at risk of replay attacks.

The --dev flag creates a private testnet, accessible only to you. It automatically sets flags like --maxpeers 0 and a temporary datadir. Since only you are mining, you are guaranteed to find ether, whereas on the Morden testnet you may need to wait a bit for test Ether. --dev also increases the verbosity, turns on VM debug logging, and starts Whisper (--shh).

1
  • 2
    it also starts the vm debug logging, and switches off node discovery protocol, and sets loglevel to max Commented Jan 28, 2016 at 7:46
2

A live testnet will put you on a live public testnet: which is a network ID that isn't 1 = that is mainnet.

Network Chain Network ID mainnet ETH 1 ropsten ETH 3 rinkeby ETH 4 goerli ETH 5 apparently network 69 is quite popular. The higher the ID the less nodes, and I suppose a dev-net could pick network ID 696969 and it would be easy to mine as nobody would be on it. You'd need to open port 33333 or 30000 AFAIK.

A dev setup also does not care for consensus and turning your comp into a heater. No need for ports on the firewall to be open.

I don't think you can use --dev and --testnet together.

testnet is public testing network, where mining is easier than main network, but harder than dev.

dev is private dev network, mining should be easy.

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.