Skip to content

Instantly share code, notes, and snippets.

@rockon1985
Created September 17, 2018 07:58
Show Gist options
  • Select an option

  • Save rockon1985/3b2a8aaab4925bf5bdfcd53f592e99ef to your computer and use it in GitHub Desktop.

Select an option

Save rockon1985/3b2a8aaab4925bf5bdfcd53f592e99ef to your computer and use it in GitHub Desktop.
Join channel
# Update the environment variable for Peer0
export CORE_PEER_MSPCONFIGPATH=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/buyerone-example-com/users/Admin@buyerone-example-com/msp
export CORE_PEER_LOCALMSPID="BuyerOneMSP"
export CORE_PEER_ADDRESS=peer0-buyerone-example-com:7051
export CORE_PEER_TLS_ROOTCERT_FILE=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/buyerone-example-com/peers/peer0-buyerone-geoverse-com/tls/ca.crt
# Install the chaincode for Peer0
peer chaincode install -n mycc2 -v 2.0 -l node -p /opt/gopath/src/github.com/chaincode/default_chaincode/node/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment