简体   繁体   English

如何在私有网络的底层区块链中设置系统属性?

[英]How to set system properties in substrate blockchain for private network?

I am deploying my own private blockchain using the substrate code.我正在使用底层代码部署我自己的私有区块链。 In which how to set the token decimals and token symbol while deploying it?部署时如何设置令牌小数和令牌符号?

图片

These parameters are set in the node's chain_spec.rs in the template code and an example from polkadot code that ingests a JSON file for a specific chain ( examples )这些参数在模板代码中节点的chain_spec.rs中设置,并且来自polkadot 代码的示例为特定链摄取 JSON 文件( 示例

To get this generated for you automatically that you can then customize, build the node and then follow the flowoutlined in the cumulus workshop to get a plain chainspec, edit as you see fit, and then generate a custom final one that you can use when starting your nodes.要自动为您生成它,然后您可以自定义,构建节点,然后按照cumulus 研讨会中概述的流程来获得一个简单的链规范,根据您的需要进行编辑,然后生成一个自定义的最终版本,您可以在何时使用启动你的节点。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM