Hyperledger Fabric 命令详解之“ generate ”

kakushao · · 772 次点击 · · 开始浏览    
这是一个创建于 的文章,其中的信息可能已经有所发展或是发生改变。

sudo ./byfn.sh -m generate


a@ubuntu:~/hyfa/fabric-samples/first-network$ sudo ./byfn.sh -m generate


Generating certs and genesis block for with channel 'mychannel' and CLI timeout of '10' seconds and CLI delay of '3' seconds

Continue? [Y/n] y

proceeding ...

/home/a/hyfa/fabric-samples/first-network/../bin/cryptogen

> 利用cryptogen tool 生成证书

Generate certificates using cryptogen tool

+cryptogen generate --config=./crypto-config.yaml

org1.example.com

org2.example.com

+res=0

+set +x

/home/a/hyfa/fabric-samples/first-network/../bin/configtxgen

> 生成orderer创世区块

Generating Orderer Genesis block

+configtxgen -profile TwoOrgsOrdererGenesis -outputBlock ./channel-artifacts/genesis.block

[common/tools/configtxgen] 下载configuration

2018-07-09 18:39:18.313 PDT [common/tools/configtxgen] main -> INFO 001 Loading configuration

[msp] 下载NOdeOUs

2018-07-09 18:39:18.335 PDT [msp] getMspConfig -> INFO 002 Loading NodeOUs

[msp] 下载NOdeOUs

2018-07-09 18:39:18.335 PDT [msp] getMspConfig -> INFO 003 Loading NodeOUs

[common/tools/configtxgen] 生成创世区块

2018-07-09 18:39:18.335 PDT [common/tools/configtxgen] doOutputBlock -> INFO 004 Generating genesis block

[common/tools/configtxgen] 写入创世区块

2018-07-09 18:39:18.335 PDT [common/tools/configtxgen] doOutputBlock -> INFO 005 Writing genesis block

+res=0

+set +x

> 创建通道配置交易

Generating channel configuration transaction 'channel.tx'

+configtxgen -profile TwoOrgsChannel -outputCreateChannelTx ./channel-artifacts/channel.tx -channelID mychannel

INFO 001 下载配置

2018-07-09 18:39:18.352 PDT [common/tools/configtxgen] main -> INFO 001 Loading configuration

INFO 002 生成交易配置

2018-07-09 18:39:18.358 PDT [common/tools/configtxgen] doOutputChannelCreateTx -> INFO 002 Generating new channel configtx

[msp] --INFO 003 下载NodeOUs

2018-07-09 18:39:18.358 PDT [msp] getMspConfig -> INFO 003 Loading NodeOUs

[msp] --INFO 004 下载NodeOUs

2018-07-09 18:39:18.359 PDT [msp] getMspConfig -> INFO 004 Loading NodeOUs

[common/tools/configtxgen] 写入通道交易

2018-07-09 18:39:18.384 PDT [common/tools/configtxgen] doOutputChannelCreateTx -> INFO 005 Writing new channel tx

+res=0

+set +x

> 更新org1MSP,生成锚节点

Generating anchor peer update for Org1MSP

+configtxgen -profile TwoOrgsChannel

-outputAnchorPeersUpdate ./channel-artifacts/Org1MSPanchors.tx -channelID mychannel -asOrg Org1MSP

下载配置

2018-07-09 18:39:18.392 PDT [common/tools/configtxgen] main -> INFO 001 Loading configuration

生成anchor节点更新

2018-07-09 18:39:18.400 PDT [common/tools/configtxgen] doOutputAnchorPeersUpdate -> INFO 002 Generating anchor peer update

写入anchor节点

2018-07-09 18:39:18.401 PDT [common/tools/configtxgen] doOutputAnchorPeersUpdate -> INFO 003 Writing anchor peer update

+res=0

+set +x

> 更新org2MSP 生成anchor节点

Generating anchor peer update for Org2MSP

+configtxgen -profile TwoOrgsChannel

-outputAnchorPeersUpdate ./channel-artifacts/Org2MSPanchors.tx -channelID mychannel -asOrg Org2MSP

[common/tools/configtxgen] 下载配置

2018-07-09 18:39:18.408 PDT [common/tools/configtxgen] main -> INFO 001 Loading configuration

[common/tools/configtxgen] 生成anchor节点更新

2018-07-09 18:39:18.421 PDT [common/tools/configtxgen] doOutputAnchorPeersUpdate -> INFO 002 Generating anchor peer update

[common/tools/configtxgen] 写入anchor节点更新

2018-07-09 18:39:18.421 PDT [common/tools/configtxgen] doOutputAnchorPeersUpdate -> INFO 003 Writing anchor peer update

+res=0

+set +x


有疑问加站长微信联系(非本文作者)

本文来自:Segmentfault

感谢作者:kakushao

查看原文:Hyperledger Fabric 命令详解之“ generate ”

入群交流(和以上内容无关):加入Go大咖交流群,或添加微信:liuxiaoyan-s 备注:入群;或加QQ群:692541889

772 次点击  
加入收藏 微博
暂无回复
添加一条新回复 (您需要 登录 后才能回复 没有账号 ?)
  • 请尽量让自己的回复能够对别人有帮助
  • 支持 Markdown 格式, **粗体**、~~删除线~~、`单行代码`
  • 支持 @ 本站用户;支持表情(输入 : 提示),见 Emoji cheat sheet
  • 图片支持拖拽、截图粘贴等方式上传