当前位置:首页 » 《资源分享》 » 正文

Hyperledger Fabric 2.3 测试网部分指令合集翻译_JAY的博客

25 人参与  2021年09月20日 10:43  分类 : 《资源分享》  评论

点击全文阅读


Hyperledger Fabric 2.3 测试网部分指令合集翻译

  • 指令格式
  • Modes
  • Flags:Used with `network.sh up`, `network.sh createChannel`
  • Used with `network.sh deployCC`

指令格式

在Fabric中的指令格式应当为network.sh <Mode> [Flags],下文将详细介绍Mode指令和Flags指令分别有哪些 。

Modes

up — bring up fabric orderer and peer nodes. No channel is created.
启动fabric排序节点和普通节点。没有通道建立。

up createChannel— bring up fabric network with one channel
建立带有一个频道的fabric网络

createChannel—create and join a channel after the network is created
在网络被建立后创建并加入一个频道

deployCC—deploy the fabcar chaincode on the channel
部署fabcar链码(智能合约)到频道里

down—clear the network with docker-compose down
清除网络并关闭docker-compose

restart— restart the network
重启网络

Flags:Used with network.sh up, network.sh createChannel

ca <use CAs> - create Certificate Authorities to generate the crypto material
创建证书颁发机构以生成加密资料

-c <channel name> - channel name to use (defaults to “mychannel”)
要使用的频道名称(默认为“mychannel”)

-s <dbtype> - the database backend to use: goleveldb (default) or couchdb
要使用的数据库后端:goleveldb(默认)或 couchdb

-r <max retry>- CLI times out after certain number of attempts (defaults to 5)
CLI 在一定次数的尝试后超时(默认为 5)

-d <delay> - delay duration in seconds (defaults to 3)
以秒为单位的延迟持续时间(默认为 3)

-l <language> - the programming language of the chaincode to deploy: go (default), java, javascript, typescript
要部署的链码的编程语言:go(默认)、java、javascript、typescript

-v <version> - chaincode version. Must be a round number, 1, 2, 3, etc
链码版本。 必须是整数,1、2、3 等

-i <imagetag> - the tag to be used to launch the network (defaults to “latest”)
用于启动网络的标签(默认为“最新”)

-cai <ca_imagetag> - the image tag to be used for CA (defaults to “1.4.6”)
== 用于 CA 的图像标签(默认为“1.4.6”)==

-verbose - verbose mode
详细模式

network.sh -h (print this message)
打印此消息

Used with network.sh deployCC

-c <channel name> - Name of channel to deploy chaincode to
部署链码的通道名称

-ccn <name> - Chaincode name.
链码名称

-ccl <language> - Programming language of the chaincode to deploy: go, java, javascript, typescript
== 要部署的链代码的编程语言:go、java、javascript、typescript==

-ccv <version> - Chaincode version. 1.0 (default), v2, version3.x, etc
链码版本。 1.0(默认)、v2、version3.x 等

-ccs <sequence> - Chaincode definition sequence. Must be an integer, 1 (default), 2, 3, etc、
链码定义序列。 必须是整数、1(默认)、2、3 等

-ccp <path> - File path to the chaincode.
链码的文件路径

-ccep <policy> - (Optional) Chaincode endorsement policy using signature policy syntax. The default policy requires an endorsement from Org1 and Org2
(可选)使用签名策略语法的链码背书策略。 默认策略需要来自 Org1 和 Org2 的背书

-cccg <collection-config> - (Optional) File path to private data collections configuration file
(可选)私有数据集合配置文件的文件路径

-cci <fcn name> - (Optional) Name of chaincode initialization function. When a function is provided, the execution of init will be requested and the function will be invoked.
(可选)链码初始化函数的名称。 当提供一个函数时,将请求执行 init 并调用该函数。


点击全文阅读


本文链接:http://zhangshiyu.com/post/28255.html

指令  默认为  默认  
<< 上一篇 下一篇 >>

  • 评论(0)
  • 赞助本站

◎欢迎参与讨论,请在这里发表您的看法、交流您的观点。

关于我们 | 我要投稿 | 免责申明

Copyright © 2020-2022 ZhangShiYu.com Rights Reserved.豫ICP备2022013469号-1