Testnet and devnets#

Testnet is a fully functioning Dash blockchain with the one key exception that because the Dash on the network can be created freely, it has no value. This currency, known as tDASH, can be requested from a faucet to help developers test new versions of Dash, as well as test network operations using identical versions of the software before they are carried out on the mainnet. There are a few other key differences:

  • Testnet operates on port 19999 (instead of 9999)

  • Testnet addresses start with „y“ instead of „X“, ADDRESSVERSION is 140 (instead of 76)

  • Testnet balances are denominated in tDASH (instead of DASH)

  • Protocol message header bytes are 0xcee2caff (instead of 0xbf0c6bbd)

  • Bootstrapping uses different DNS seeds: test.dnsseed.masternode.io, testnet-seed.darkcoin.qa, testnet-seed.dashpay.io

  • Launching Dash Core in testnet mode shows an orange tray icon

To start Dash Core in testnet mode, find your dash.conf file and enter the following line:

testnet = 1

With the release of Dash Core 12.3, Dash added support for a great new feature - named devnets. Devnets are developer networks that combine some aspects of testnet (the global and public testing network) and some aspects of regtest (the local-only regression testing mode that provides controlled block generation). Unlike testnet, multiple independent devnets can be created and coexist without interference. For practical documentation on how to use devnets, see the developer documentation or this blog post.

Masternodes#

Installing a masternode under testnet generally follows the same steps as the mainnet masternode installation guide, but with a few key differences:

  • You will probably be running a development version of Dash instead of the stable release. Choose the latest nightly build on GitHub.

  • When opening the firewall, port 19999 must be opened instead of (or in addition to) 9999. Use this command: ufw allow 19999/tcp

  • Your desktop wallet must be running in testnet mode. Add the following line to dash.conf: testnet = 1

  • When sending the collateral, you can get the 1000 tDASH for free from a faucet (see above)

  • Your masternode configuration file must also specify testnet mode. Add the following line when setting up dash.conf on the masternode: testnet = 1

  • As for mainnet masternodes, the RPC username and password must contain alphanumeric characters only