摘要:利用生成證書生成創(chuàng)世區(qū)塊下載下載下載生成創(chuàng)世區(qū)塊寫入創(chuàng)世區(qū)塊創(chuàng)建通道配置交易下載配置生成交易配置下載下載寫入通道交易更新,生成錨節(jié)點
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 生成證書+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創(chuàng)世區(qū)塊+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] 生成創(chuàng)世區(qū)塊
2018-07-09 18:39:18.335 PDT [common/tools/configtxgen] doOutputBlock -> INFO 004 Generating genesis block
[common/tools/configtxgen] 寫入創(chuàng)世區(qū)塊
2018-07-09 18:39:18.335 PDT [common/tools/configtxgen] doOutputBlock -> INFO 005 Writing genesis block
+res=0
+set +x
> 創(chuàng)建通道配置交易 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,生成錨節(jié)點+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節(jié)點更新
2018-07-09 18:39:18.400 PDT [common/tools/configtxgen] doOutputAnchorPeersUpdate -> INFO 002 Generating anchor peer update
寫入anchor節(jié)點
2018-07-09 18:39:18.401 PDT [common/tools/configtxgen] doOutputAnchorPeersUpdate -> INFO 003 Writing anchor peer update
+res=0
+set +x
> 更新org2MSP 生成anchor節(jié)點+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節(jié)點更新
2018-07-09 18:39:18.421 PDT [common/tools/configtxgen] doOutputAnchorPeersUpdate -> INFO 002 Generating anchor peer update
[common/tools/configtxgen] 寫入anchor節(jié)點更新
2018-07-09 18:39:18.421 PDT [common/tools/configtxgen] doOutputAnchorPeersUpdate -> INFO 003 Writing anchor peer update
+res=0
+set +x
文章版權(quán)歸作者所有,未經(jīng)允許請勿轉(zhuǎn)載,若此文章存在違規(guī)行為,您可以聯(lián)系管理員刪除。
轉(zhuǎn)載請注明本文地址:http://www.ezyhdfw.cn/yun/24196.html
摘要:構(gòu)建你的第一個網(wǎng)絡方案提供了一個包含兩個組織的示例網(wǎng)絡,每個組織維護兩個對等節(jié)點,以及一個獨立排序服務。它還將啟動一個容器來運行腳本執(zhí)行,該執(zhí)行將對等點連接到一個通道,部署和實例化鏈碼并驅(qū)動針對部署的鏈碼執(zhí)行交易。 構(gòu)建你的第一個網(wǎng)絡 這些說明已經(jīng)過驗證,可以與最新的穩(wěn)定Docker鏡像和提供的tar文件中預編譯的安裝實用程序一起工作,如果使用當前主分支中的鏡像或工具運行這些命令,則可...
摘要:創(chuàng)建網(wǎng)絡,,,執(zhí)行中。。。通道上,向發(fā)送的交易,成功在上安裝鏈碼上鏈碼安裝成功請求上鏈碼。。。請求上鏈碼請求結(jié)果通道上,請求成功通道上,,請求成功拜占庭執(zhí)行完成 sudo ./byfn.sh up a@ubuntu:~/hyfa/fabric-samples/first-network$ sudo ./byfn.sh up > 創(chuàng)建網(wǎng)絡,peer,orderer,cli Star...
摘要:停止客戶端停止節(jié)點,和刪除客戶端刪除和刪除網(wǎng)絡刪除節(jié)點容器檢查網(wǎng)絡檢查容器刪除刪除刪除自動化腳本會將生成的文件一起刪掉所以,如果需要保留文件的話需要手動刪除 ./bash.sh down a@ubuntu:~/hyfa/fabric-samples/first-network$ sudo ./byfn.sh down [sudo] password for a: Stopping w...
摘要:生成創(chuàng)世區(qū)塊生成配置交易定義錨節(jié)點為定義錨節(jié)點為定義錨節(jié)點啟動網(wǎng)絡創(chuàng)建和加入命令成功后顯示如下創(chuàng)建將加入創(chuàng)建的將加入創(chuàng)建的更新錨節(jié)點安裝實例化查詢 環(huán)境準備 docker安裝 Docker最低版本要求是version 17.06.2-ce推薦在Docker官網(wǎng)下載Mac版本 go安裝 Go最低版本要求是 1.10.x可在使用brew或者Go官網(wǎng)下載Mac版本 下載示例,二進制和dock...
摘要:是企業(yè)與區(qū)塊鏈相遇的地方。的框架旨在成為開發(fā)區(qū)塊鏈解決方案的支柱。以太坊,主要是針對工程師使用進行區(qū)塊鏈以太坊開發(fā)的詳解。 如果你想將區(qū)塊鏈合并到一個Java項目中,現(xiàn)在我們來看看就是這個細分領(lǐng)域中三個最大的OSS玩家。 好的伙計們,我們都聽說過比特幣,以太坊或其他加密貨幣,其中有一些時髦的名字圍繞著我們常見的新聞,但我們作為Java開發(fā)人員知道如何輕松地與這些區(qū)塊鏈技術(shù)進行交互嗎?以...
閱讀 653·2023-04-25 21:29
閱讀 1213·2023-04-25 21:27
閱讀 1178·2021-11-25 09:43
閱讀 1190·2021-09-29 09:43
閱讀 3719·2021-09-03 10:30
閱讀 2943·2019-08-29 15:26
閱讀 2966·2019-08-29 12:52
閱讀 1840·2019-08-29 11:10