Last active
September 17, 2018 10:05
-
-
Save rockon1985/a7f06ac80dc7d91c97129b0f17be1369 to your computer and use it in GitHub Desktop.
Gist to install chaincode
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # 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-example-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