Hyperledger Fabric 命令詳解之“ generate ”

來源:互聯網
上載者:User

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

相關文章

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.