In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-19 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)05/31 Report--
This article mainly introduces the example analysis of fabric pipeline creation test in the blockchain, which has a certain reference value, and interested friends can refer to it. I hope you will gain a lot after reading this article.
Create heidsoft fabric blockchain network to generate Genesis block configtxgen-profile TwoOrgsOrdererGenesis-outputBlock. / channel-artifacts/heidsoft/genesis.block generate Channel configuration block configtxgen-profile TwoOrgsChannel-outputCreateChannelTx. / channel-artifacts/heidsoft/channel.tx-channelID heidsoftconfigtxgen-profile TwoOrgsChannel-outputAnchorPeersUpdate. / channel-artifacts/heidsoft/Org1MSPanchors.tx-channelID heidsoft-asOrg Org1MSPconfigtxgen-profile TwoOrgsChannel-outputAnchorPeersUpdate. / channel-artifacts/heidsoft/Org2MSPanchors.tx-channelID heidsoft-asOrg Org2MSP create pipeline export ORDERER_CA=/opt/gopath/src/github.com / hyperledger/fabric/peer/crypto/ordererOrganizations/example.com/orderers/orderer.example.com/msp/tlscacerts/tlsca.example.com-cert.pempeer channel create-o orderer.example.com:7050-c heidsoft-f. / channel-artifacts/heidsoft/channel.tx-- tls true-- cafile $ORDERER_CA add blocks to pipe peer0.org1root@2284e29f5b2a:/opt/gopath/src/github.com/hyperledger/fabric/peer# peer channel join-b heidsoft.block2018-11-21 05:33: 27.606 UTC [channelCmd] InitCmdFactory-> INFO 001Endorser and orderer connections initialized2018-11-21 05VZ 33 channelCmd 27.669 UTC [channelCmd] executeJoin-> INFO 002 Successfully submitted proposal to join channelroot@2284e29f5b2a:/opt/gopath/src/github.com/hyperledger/fabric/peer# peer channel list2018-11-2105VLV 33 UTC [channelCmd] InitCmdFactory-> INFO 001 Endorser and orderer connections initializedChannels peers has joined:mychannelheidsoftroot@2284e29f5b2a:/opt/gopath/src/github.com/hyperledger/fabric/peer# peer channel join- -helproot@2284e29f5b2a:/opt/gopath/src/github.com/hyperledger/fabric/peer# env | grep-I CORE_PEER_LOCALMSPIDCORE_PEER_LOCALMSPID=Org1MSProot@2284e29f5b2a:/opt/gopath/src/github.com/hyperledger/fabric/peer# env | grep-I CORE_PEER_TLS_ROOTCERT_FILECORE_PEER_TLS_ROOTCERT_FILE=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/peers/peer0.org1.example.com/tls/ca.crtroot@2284e29f5b2a:/ Opt/gopath/src/github.com/hyperledger/fabric/peer# env | grep-I CORE_PEER_MSPCONFIGPATHCORE_PEER_MSPCONFIGPATH=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/users/Admin@org1.example.com/msproot@2284e29f5b2a:/opt/gopath/src/github.com/hyperledger/fabric/peer# env | grep-I CORE_PEER_ADDRESSCORE_PEER_ADDRESS=peer0.org1.example.com:7051root@2284e29f5b2a:/opt/gopath/src/github.com/ Hyperledger/fabric/peer# joins peer1.org1export CORE_PEER_LOCALMSPID= "Org1MSP" export CORE_PEER_TLS_ROOTCERT_FILE=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/peers/peer1.org1.example.com/tls/ca.crt export CORE_PEER_MSPCONFIGPATH=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/users/Admin@org1.example.com/msp export CORE_PEER_ ADDRESS=peer1.org1.example.com:7051root@2284e29f5b2a:/opt/gopath/src/github.com/hyperledger/fabric/peer# peer channel join-b heidsoft.block2018-11-21 05 UTC 05.118 UTC [channelCmd] InitCmdFactory-> INFO 001 Endorser and orderer connections initialized2018-11-21 205 UTC [channelCmd] executeJoin-> INFO 002 Successfully submitted proposal to join channelroot@2284e29f5b2a:/opt/gopath/src/github.com/hyperledger/fabric/peer# join peer0.org2export CORE_PEER_LOCALMSPID= "Org2MSP" "export CORE_PEER_TLS_ROOTCERT_FILE=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org2.example.com/peers/peer0.org2.example.com/tls/ca.crt export CORE_PEER_MSPCONFIGPATH=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org2.example.com/users/Admin@org2.example.com/msp export CORE_PEER_ADDRESS=peer0.org2.example.com:7051root@2284e29f5b2a:/opt/gopath/src / github.com/hyperledger/fabric/peer# peer channel join-b heidsoft.block2018-11-21 05UTC [channelCmd] InitCmdFactory-> INFO 001 Endorser and orderer connections initialized2018-11-2105Partition 44327 UTC [channelCmd] executeJoin-> INFO 002 Successfully submitted proposal to join channelroot@2284e29f5b2a:/opt/gopath/src/github.com/hyperledger/fabric/peer# join peer1.org2export CORE_PEER_LOCALMSPID= "Org2MSP" CORE_PEER_TLS_ROOTCERT_FILE=/opt/gopath/src/github .com / hyperledger/fabric/peer/crypto/peerOrganizations/org2.example.com/peers/peer1.org2.example.com/tls/ca.crt export CORE_PEER_MSPCONFIGPATH=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org2.example.com/users/Admin@org2.example.com/msp export CORE_PEER_ADDRESS=peer1.org2.example.com:7051root@2284e29f5b2a:/opt/gopath/src/github.com/hyperledger/fabric/peer# peer channel join-b heidsoft.block2018 -11-21 05 Endorser and orderer connections initialized2018 47 UTC 30.079 UTC [channelCmd] InitCmdFactory-> INFO 001 Endorser and orderer connections initialized2018-11-21 05 5 InitCmdFactory 47 30. 165 UTC [channelCmd] executeJoin-> INFO 002 Successfully submitted proposal to join channel Thank you for reading this article carefully I hope the article "sample Analysis of fabric Pipeline creation Test in Block chain" shared by the editor will be helpful to you. At the same time, I hope you will support us and pay attention to the industry information channel. More related knowledge is waiting for you to learn!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.