CryptoNote has updated its official repository to include the testnet tool for those who are building a new CryptoNote currency.
The testnet is your sandbox for the currency's and network's sustainability before the launch or prior to a major update. Generally, you wouldn't want to roll out a feature, which might jeopardize user experience or network health.
The new CryptoNote testnet tool ignores the real network by skipping its checkpoints and peer lists. It also generates a new genesis block on startup. By doing so you create a new block chain for your network which can be used for testing purposes. This can also be useful for pool owners deploying a new feature related to mining, since their own testnet doesn't have external miners to compete with for the blocks during the tests.
1. After compiling the binaries you should start the daemon with the "--testnet" and "--data-dir" arguments:
cryptonotecoind --testnet --data-dir=new/path/to/blockchain
--testnet argument forces daemon to start a new testing network.
--data-dir argument should be different from the default folder so that the testnet doesn't interfere with the real network's block chain and peer pools. When you launch a new testnet, be sure to provide it with a new folder.
2. Launching simplewallet requires only the "--testnet" argument to connect to the testnet daemon:
simplewallet --testnet
3. In case you need to create a testnet that consists of more than 1 node, you should connect each next daemon to the previously launched testnet through the "--add-exclusive-node" argument:
cryptonotecoind --testnet --data-dir=new/path/to/blockchain --add-exclusive-node=testnet.node.ip:port
Links to the repository and the forking guide:
https://github.com/cryptonotefoundation/cryptonotehttps://cryptonotestarter.orgOriginal discussion:
https://forum.cryptonote.org/viewtopic.php?f=5&t=234&p=791#p791