Substrate:如何通过民主使用Chopsticks执行平行链运行时升级

huangapple go评论82阅读模式
英文:

Substrate: How to perform Parachain Runtime Upgrade via Democracy using Chopsticks

问题

我正在尝试使用Acala的Chopsticks执行运行时升级。
我按照授权 > 执行升级流程为我的平行链进行了操作,它有效。

要在本地Polkadot中生成区块,我通过ws连接并执行了以下命令:

{ "jsonrpc": "2.0", "id": "1", "method": "dev_newBlock", "params": [ {"count": 1000} ]}

然而,当我检查paras > futureCodeUpgrades时,我没有看到我的平行链。
帮帮我。

英文:

I am trying to perform a runtime upgrade using Acala's Chopsticks.
I followed the authorize > enact an upgrade flow for my parachain, and it works.

To produce blocks in local Polkadot, i connected through ws and executed the command:

{ "jsonrpc": "2.0", "id": "1", "method": "dev_newBlock", "params": [ {"count": 1000} ]}

However when I checked paras > futureCodeUpgrades, I do not see my parachain.
Help.

答案1

得分: 0

如果您已成功执行了运行时升级并且已在您的平行链上执行,但您在paras > futureCodeUpgrades下看不到您的平行链列表,可能有几个原因。

升级状态:运行时升级可能尚未被网络完全处理或确认。在它出现在futureCodeUpgrades部分之前,等待网络完成升级是至关重要的。

节点同步:如果您的本地Polkadot节点未与网络完全同步,它可能不会显示最新的升级和更改。确保您的节点已完全同步以获取最新的数据。

错误的终端点:验证您是否连接到负责查询futureCodeUpgrades信息的本地节点的正确终端点。

平行链配置:确保您已正确配置您的平行链以参与未来的代码升级。如果您的平行链未配置为参与,它将不会出现在futureCodeUpgrades列表中。

平行链标识符:在检查升级状态时,请再次确认您是否正在寻找正确的平行链标识符。该标识符在网络上唯一标识您的平行链。

如果您等待了一段时间仍然看不到您的平行链在futureCodeUpgrades下列出,可能有益于检查您的本地节点的日志,或者联系Acala社区或支持渠道以获取进一步的帮助。他们可以帮助您解决问题,确保您的运行时升级已成功并在网络上正确记录。

英文:

If you have successfully executed the runtime upgrade and it has been enacted on your parachain, but you cannot see your parachain listed under paras > futureCodeUpgrades, it's possible that there might be a few reasons for this.

Upgrade Status: The runtime upgrade might not have been fully processed or confirmed by the network yet. It's essential to wait for the network to finalize the upgrade before it appears in the futureCodeUpgrades section.

Node Synchronization: If your local Polkadot node is not fully synchronized with the network, it might not show the most recent upgrades and changes. Ensure your node is fully synchronized to get the latest data.

Wrong Endpoint: Verify that you are connecting to the correct endpoint of your local node that is responsible for querying the futureCodeUpgrades information.

Parachain Configuration: Make sure you have correctly configured your parachain to participate in future code upgrades. If your parachain is not configured for this, it won't appear in the futureCodeUpgrades list.

Parachain Identifier: Double-check that you are looking for the correct parachain identifier when checking for the upgrade status. The identifier uniquely identifies your parachain on the network.

If you have waited for some time and still don't see your parachain listed under futureCodeUpgrades, it might be beneficial to check the logs of your local node or reach out to the Acala community or support channels for further assistance. They can help you troubleshoot the issue and ensure your runtime upgrade was successful and properly recorded on the network.

答案2

得分: 0

我在StackExchange上发布了同样的问题,最终在我的团队帮助下找到了答案。

基本上,只需在中继链和平行链中生成区块。

英文:

I posted the same question in StackExchange, and I finally figured it out with the help of my teammates.

Basically, just produce blocks in both the relaychain and the parachain.

huangapple
  • 本文由 发表于 2023年7月4日 20:31:15
  • 转载请务必保留本文链接:https://go.coder-hub.com/76612659.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定