I am trying to demonstrate the usage of Private Data in Hyperlderger Fabric as part of a PoC. I have been following the steps given in: https://hyperledger-fabric.readthedocs.io/en/release-1.4/private_data_tutorial.html
I have been able to start the byfn.sh
network and I am now trying to instantiate the chaincode on each and every peer which is a part of the network.
I have first switched to peer 0 of organisation 1 to instantiate the code in it:
export CORE_PEER_ADDRESS=peer0.org1.example.com:7051
peer chaincode install -n marblesp -v 1.0 -p github.com/chaincode/marbles02_private/go/
I get the desired output saying:
install -> INFO 003 Installed remotely response:<status:200 payload:"OK" >
When I switch to the peer 1 of organisation 1 and try the same steps, I am getting an error:
export CORE_PEER_ADDRESS=peer1.org1.example.com:8051
.
peer chaincode install -n marblesp -v 1.0 -p github.com/chaincode/marbles02_private/go/
The error is:
Error: error getting endorser client for install: endorser client failed to connect to peer1.org1.example.com:8051: failed to create new connection: context deadline exceeded
Please help me resolve the issue.
This is for a Mac system. The docker is up and running.