Being new to Blockchain and Hyperledger Fabric I am trying to find answers to the below questions,
I am planning to use the IBM Bluemix starter plan and install a chaincode to a sample fabric network using a BNA developed in Hyperledger composer.
In a multi-org, multi-peer setup (real world scenario) where does the chaincode exist (or gets installed) in the Hyperledger Fabric network - is it confined to a specific peer or all the peers in a channel?
If the chaincode is residing in a specific peer then what happens to the network in case the peer is down (due to connectivity disruption or other unforeseen calamities) - will the whole channel be unable to operate without a chaincode?
How can multiple chaincodes in various peers access the same set of data in hyperledger fabric?
- I saw this content in http://hyperledger-fabric.readthedocs.io : “State created by a chaincode is scoped exclusively to that chaincode and can’t be accessed directly by another chaincode. Given the appropriate permission, a chaincode may invoke another chaincode, either in the same channel or in different channels, to access its state. Note that, if the called chaincode is on a different channel from the calling chaincode, only read query is allowed”. But i am not sure how to grant the "appropriate permission".