Tools, FAQ, Tutorials:
Switch Default Peer on BYFN CLI Container
How to switch the default peer on BYFN CLI Container? I want to join peer0.org2.example.com to the channel.
✍: FYIcenter.com
You can follow this tutorial to switch the default peer to
peer0.org2.example.com
and join it to BYFN "mychannel" channel.
1. Switch the default peer by channing envrionment variables:
bash-4.4# export CORE_PEER_ADDRESS=peer0.org2.example.com:7051 bash-4.4# export CORE_PEER_LOCALMSPID=Org2MSP bash-4.4# export CORE_PEER_MSPCONFIGPATH=/opt/gopath/src/github.com/hyperledger\ /fabric/peer/crypto/peerOrganizations/org2.example.com/users\ /Admin@org2.example.com/msp bash-4.4# 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
2. Check default peer, peer0.org2.example.com, status:
bash-4.4# peer node status status:STARTED bash-4.4# peer channel list [channelCmd] InitCmdFactory -> INFO 001 Endorser and orderer connections initialized Channels peers has joined:
3. Join the default peer to channel "mychannel":
bash-4.4# peer channel join -b mychannel.block [channelCmd] InitCmdFactory -> INFO 001 Endorser and orderer connections initialized [channelCmd] executeJoin -> INFO 002 Successfully submitted proposal to join channel bash-4.4# peer channel list [channelCmd] InitCmdFactory -> INFO 001 Endorser and orderer connections initialized Channels peers has joined: mychannel
peer.org2.example.com has joined the "mychannel".
Â
⇒ Update Anchor Peer of Each BYFN Organization
⇠Join Peer to BYFN Network Channel
⇑ Hyperledger Fabric Sample Networks
⇑⇑ Hyperledger Tutorials
2020-09-30, 856👍, 0💬
Popular Posts:
How to create Hello-2.0.epub with WinRAR? I have all required files to create Hello-2.0.epub. To cre...
How to use "{{...}}" Liquid Codes in "set-body" Policy Statement? The "{{...}}" Liquid Codes in "set...
FYIcenter JSON Validator and Formatter is an online tool that checks for syntax errors of JSON text ...
What is EPUB 2.0 Metadata "dc:creator" and "dc:contributor" elements? EPUB 2.0 Metadata "dc:creator"...
How to install .NET Framework in Visual Studio Community 2017? I have the Visual Studio Installer in...