测试网络和开发者网络#

测试网络是一个拥有完整达世币区块链功能的网络,唯一的区别是测试网络中的达世币可以随意创建,没有任何价值。这种货币称为tDASH,可从内接头处请求获取,它可以帮助开发人员测试新版本的达世币,还可在相同的软件版本进入主网络之前,测试它们的网络运行。当然还有一些其他的主要差异:

  • 测试网络于端口19999上运行(而非9999)

  • Testnet地址以 “y” 开头,而非 “X”,ADDRESSVERSION为140(而非76)

  • Testnet余额以tDASH显示(而非DASH)

  • 协议消息首标字节为0xcee2caff(而非0xbf0c6bbd)

  • Bootstrapping使用不同的DNS种子:test.dnsseed.masternode.io, testnet-seed.darkcoin.qa, testnet-seed.dashpay.io

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

要在测试网络模式下启动Dash Core,首先请找到您的dash.conf文件,然后输入:

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.

主节点#

在测试网络下安装主节点,步骤一般与 主网主节点安装指南 所述相同,除了一些关键的区别:

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

  • 打开防火墙时,必须也打开端口19999,不要打开(或除了)端口9999。使用此指令: ufw allow 19999/tcp

  • 您的桌面钱包必须以测试网络模式运行。添加 dash.conf: testnet = 1

  • 发送保证金时,您可以从内接头处免费获得1000 tDASH(见上文)

  • 您的主节点配置文件必须指定测试网络模式。在设置 dash.conf 时,请在主节点上添加: testnet = 1

  • 对于主网的主节点,RPC用户名和密码只能包含字母数字字符