Tools, FAQ, Tutorials:
Update Anchor Peer of Each BYFN Organization
How to Update Anchor Peer of Each BYFN Organization?
✍: FYIcenter.com
You can follow this tutorial to Update Anchor Peer of Each BYFN Organization.
1. Update the default peer as the anchor peer:
bash-4.4# echo $CORE_PEER_ADDRESS peer0.org2.example.com:7051 bash-4.4# peer channel update -o orderer.example.com:7050 -c mychannel \ -f ./channel-artifacts/Org2MSPanchors.tx --tls \ --cafile /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto\ /ordererOrganizations/example.com/orderers/orderer.example.com/msp\ /tlscacerts/tlsca.example.com-cert.pem [channelCmd] InitCmdFactory -> INFO 001 Endorser and orderer connections initialized [channelCmd] update -> INFO 002 Successfully submitted channel update
2. Switch default peer to peer0.org1.example.com and update it as the anchor peer:
bash-4.4# export CORE_PEER_ADDRESS=peer0.org1.example.com:7051 bash-4.4# export CORE_PEER_LOCALMSPID=Org1MSP bash-4.4# export CORE_PEER_MSPCONFIGPATH=/opt/gopath/src/github.com/hyperledger\ /fabric/peer/crypto/peerOrganizations/org1.example.com/users\ /Admin@org1.example.com/msp bash-4.4# export CORE_PEER_TLS_ROOTCERT_FILE=/opt/gopath/src/github.com/hyperledger\ /fabric/peer/crypto/peerOrganizations/org1.example.com/peers\ /peer0.org1.example.com/tls/ca.crt bash-4.4# peer channel update -o orderer.example.com:7050 -c mychannel \ -f ./channel-artifacts/Org1MSPanchors.tx --tls \ --cafile /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto\ /ordererOrganizations/example.com/orderers/orderer.example.com\ /msp/tlscacerts/tlsca.example.com-cert.pem [channelCmd] InitCmdFactory -> INFO 001 Endorser and orderer connections initialized [channelCmd] update -> INFO 002 Successfully submitted channel update
⇒ BYFN Chaincode - chaincode_example02.go
⇐ Switch Default Peer on BYFN CLI Container
2019-04-13, 1700🔥, 0💬
Popular Posts:
How to use the XML to JSON Conversion Tool at freeformatter.com? If you want to try the XML to JSON ...
How to install "The Windows SDK version 8.1"? I need to build my Visual Studio C++ applications. If ...
How To Control Vertical Alignment? By default, text in all table cells are aligned to the top vertic...
How to login to Azure API Management Publisher Dashboard? If you have given access permission to an ...
Where can I download the EPUB 2.0 sample book "The Metamorphosis" by Franz Kafka? You can following ...