Skip to main content

Operator 操作技巧与窍门

插入密钥到密钥库:

如果您决定切换域或已经有助记词,这段信息可能对你有所帮助。请在下一节阅读更多关于切换域的信息。

要插入密钥,请使用以下命令:

subspace-node domain key insert \
--base-path NODE_DATA_PATH --domain-id DOMAIN_ID --keystore-suri "<Secret phrase>"

上述命令将把密钥对插入NODE_DATA_PATH/domains/DOMAIN_ID/keystore的子文件夹。

suri是操作员密钥的助记词。

切换域

任何操作员都可以随时切换他们操作的域。 要切换域:

  1. 进入 PolkadotJS
  2. 请确保在左上角选择正确的网络。
  3. 选择您想要在using the selected account中使用的帐户。
  4. 选择submit the following extrinsic 下的 domains 并在下拉列表中选择 "switchDomain(operatorId, newDomainId) "。
  5. 将您的 operatorIdnewDomainId 添加到相应字段。

Staking-24

note

只有注册Operator 的账户才可以切换域。

note

您需要将密钥对移动到新的位置,如果您要更换域,请按照insert key to keystore section 进行操作。

note

Stake of your Nominators won't be released, but will be moved to the new domain as well.

有用的命令

同时运行验证器 (farmer) 和操作员节点

tip

To run both operator and validator at the same time, provide required flags for both roles when starting your node.

subspace-node run `
--chain taurus `
--farmer `
--name your_node_name `
--base-path NODE_DATA_PATH `
--blocks-pruning archive-canonical `
--state-pruning archive-canonical `
--sync full `
-- `
--domain-id your_domain_id `
--operator-id your_operator_id `
--blocks-pruning archive-canonical `
--state-pruning 16000
note

If you're running an operator node for AutoID domain, add the following bootstrap node to the list of domain arguments:

--bootstrap-node /dns/bootstrap-0.autoid.gemini-3h.subspace.network/tcp/30334/p2p/12D3KooWFoiz2iTkmnnSqiL2oQRhGzaqgtUjYNz2jyWKQqgPXgx9

您应该能看到节点启动成功并开始同步。

Staking-28

切换到另一个服务器

为了确保您在切换过程中的停机时间最短,我们提出以下建议:

  1. 使用临时密钥同步一个新的operator节点。您可以生成一个新密钥,只是不要将它插入您的密钥库。
  2. 停止原节点并重命名密钥库(或任何你觉得合适的方法,以防止你不小心用原签名密钥启动原节点)。
  3. 使用原签名密钥更新新节点上的密钥。
  4. 重新启动新的operator节点。