Tools, FAQ, Tutorials:
Install Chaincode on BYFN Peers
How to install chaincode on BYFN peers?
✍: FYIcenter.com
 You can follow this tutorial to install chaincode on BYFN peers manually.
You can follow this tutorial to install chaincode on BYFN peers manually. 
1. Verify the chaincode source file on the BYFN CLI container:
$ docker exec -it cli bash bash-4.4# bash-4.4# echo $GOPATH /opt/gopath bash-4.4# ls -l $GOPATH/src/github.com/chaincode/chaincode_example02/go\ /chaincode_example02.go -rw-rw-r-- 1 1000 1000 5436 Feb 21 23:01 /opt/gopath/src/github.com/chaincode\ /chaincode_example02/go/chaincode_example02.go
2. Install the chaincode source file to the default peer:
bash-4.4# echo $CORE_PEER_ADDRESS peer0.org2.example.com:7051 bash-4.4# peer chaincode install -n mycc -v 1.0 -l node \ -p /opt/gopath/src/github.com/chaincode/chaincode_example02/node/ [chaincodeCmd] checkChaincodeCmdParams -> INFO 001 Using default escc [chaincodeCmd] checkChaincodeCmdParams -> INFO 002 Using default vscc [chaincodeCmd] submitInstallProposal -> INFO 003 Installed remotely: response:<status:200 payload:"OK" >
3. Verify the installed chaincode:
bash-4.4# peer chaincode list --installed Get installed chaincodes on peer: Name: mycc, Version: 1.0, Path: /opt/gopath/src/github.com/chaincode\ /chaincode_example02/node/, Id: ade2b27...
4. Switch default peer and install the same code to peer0.org1.example.com:7051.
⇒ Instantiate Chaincode on BYFN Channel
⇐ BYFN Chaincode - chaincode_example02.go
2019-04-13, ∼1621🔥, 0💬
Popular Posts:
How to attach console to a Running Container using the "docker container exec" command? I want to ge...
How to install "The Windows SDK version 8.1"? I need to build my Visual Studio C++ applications. If ...
How to start Docker Daemon, "dockerd", on CentOS systems? If you have installed Docker on your CentO...
How To Avoid the Undefined Index Error in PHP? If you don't want your PHP page to give out errors as...
How to use 'choose ... when ..." policy statements to control execution flows? If you want to contro...