测试网络和开发者网络

Dash Core 12.3版本新增了一项很棒的功能 — 名为开发者网络 。开发者网络结合了测试网络(全局及公共测试网络)的部分性能以及regtest的部分性能(局部回归测试模式,提供受控区块生成)。不同于测试网络的是,可以创建多个独立的开发者网络,这些独立的开发者网络能够实现共存,且无干扰。关于如何使用开发者网络的实用文档,请参阅 开发者文档 或 此 博客文章.

测试网络是一个拥有完整达世币区块链功能的网络,唯一的区别是测试网络中的达世币可以随意创建,没有任何价值。这种货币称为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
  • 在测试网络模式下启动Dash Core,会显示橙色的启动画面

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

testnet = 1

主节点

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

  • 您运行的可能是达世币开发版而非稳定版。请参阅此处获取构建列表,选择最新的成功构建,单击 Artifacts 查看二进制文件列表。
  • 打开防火墙时,必须也打开端口19999,不要打开(或除了)端口9999。使用此指令: ufw allow 19999/tcp
  • 您的桌面钱包必须以测试网络模式运行。添加 dash.conf: testnet = 1
  • 发送保证金时,您可以从内接头处免费获得1000 tDASH(见上文)
  • 您不能使用dashman安装达世币开发版。参见上文所述链接,获取可下载的构建。
  • 您的主节点配置文件必须指定测试网络模式。在设置 dash.conf 时,请在主节点上添加: testnet = 1
  • 对于主网的主节点,RPC用户名和密码只能包含字母数字字符
  • 复制哨兵时,您可能需要使用 -b 选项,复制开发分支,例如:git clone -b core-v0.12.2.x https://github.com/dashpay/sentinel.git
  • 哨兵安装成功后,修改 ~/.dashcore/sentinel/sentinel.conf,对主网线路作注释,同时取消注释:network=testnet
  • 持有主节点保证金的钱包找到 ~/.dashcore/testnet3/masternode.conf 中的 masternode.conf 文件,而非 ~/.dashcore/masternode.conf 中的。

Testnet 0.13.0

In November 2018, the Dash team announced the start of testing of the upcoming Dash 0.13.0 release. Extensive internal testing has already been done on the 0.13.0 code, but there are numerous bugs that can only be revealed with actual use by real people. The Dash team invites anybody who is interested to download the software and become active on testnet. This release includes:

  • Automatic InstantSend for Simple Transactions
  • Deterministic Masternode List
  • 3 Masternode Keys: Owner, Operator and Voting
  • Special Transactions
  • PrivateSend Improvements

讨论:

最新的试验二进制文件:

Testnet 0.12.3

In June 2018, the Dash team announced the start of testing of the upcoming Dash 0.12.3 release. Extensive internal testing has already been done on the 0.12.2 code, but there are numerous bugs that can only be revealed with actual use by real people. The Dash team invites anybody who is interested to download the software and become active on testnet. This release includes:

  • 命名Devnets,帮助开发者快速创建多个独立的开发者网络
  • 新的网络消息签名格式
  • 管理系统优化
  • 匿名发送优化
  • 附加索引现涵盖P2PK
  • 支持Lite模式下的精简节点
  • 新的主节点信息对话框

讨论:

最新的试验二进制文件:

Testnet 0.12.2

In October 2017, the Dash team announced the launch of a testnet for public testing of the upcoming 0.12.2 release of the Dash software. Extensive internal testing has already been done on the 0.12.2 code, but there are numerous bugs that can only be revealed with actual use by real people. The Dash team invites anybody who is interested to download the software and become active on testnet. This release includes:

  • DIP0001 实施 https://github.com/dashpay/dips/blob/master/dip-0001.md
  • 10x交易费减免(含即时发送费)
  • 即时发送弱点修复
  • 其他诸多漏洞的修复及性能改进
  • 试验版 BIP39/BIP44 投诉HD钱包(默认禁用,应具备完善的功能,但暂缺GUI)

讨论:

最新成功构建的开发分支二进制文件: