Substrate 解析 mdns 数据包失败

Substrate Parsing mdns packet failed

我目前正在做 this tutorial。在同一台机器上,它按预期工作:节点正在连接并正在创建和完成块。但现在我想通过互联网做同样的事情。所以我有一个服务器(Ubuntu 16.04 xenial)打开端口 30333,我在上面 运行 这个命令:

    ./target/release/node-template \
      --base-path /tmp/alice \
      --chain ./customSpecRaw.json \
      --alice \
      --rpc-methods Unsafe \
      --port 30333 \
      --ws-port 9945 \
      --rpc-port 9933 \
      --node-key 0000000000000000000000000000000000000000000000000000000000000001 \
      --telemetry-url 'wss://telemetry.polkadot.io/submit/ 0' \
      --validator \
      --name Node01

我的 PC (Manjaro 20.2.1 Nibia) 没有打开我所在的端口 运行 这个命令:

    ./target/release/node-template
      --base-path /tmp/bob
      --chain ./customSpecRaw.json
      --bob
      --port 30334
      --ws-port 9946
      --rpc-port 9934
      --telemetry-url 'wss://telemetry.polkadot.io/submit/ 0'
      --validator
      --rpc-methods Unsafe
      --name Node02
      --bootnodes /ip4/<SERVER IP>/tcp/30333/p2p/<BOOTNODE P2P ID>

在终端中,我看到两个节点上都有网络流量,因此网络应该不是问题。但是两个节点上都有 0 个对等点,并且没有块 created/finalized。但是我在 bootnodes 终端上重复打印了两个错误:

Error while dialing /dns/telemetry.polkadot.io/tcp/443/x-parity-wss/%2Fsubmit%2F: Custom { kind: Other, error: Timeout }

Parsing mdns packet failed: LabelIsNotAscii

在我尝试从我的 PC 连接到引导节点之前,两个错误都已经输出了。

两个节点都是从相同的代码编译而来,并使用在服务器上生成的相同的自定义链规范文件。

所以我的问题是:

我确实重新克隆并重新编译了两个节点,现在不知何故可以正常工作了。除了 --no-mdns 标志外,我没有更改命令中的任何内容。