title: Ledger or chaincode state?
body: <p>I'm running a HLF network with 4 peers, each from a different organisation, one kafka orderer and a zookeeper service.
  My network seems to be running fine, with one exception: I can invoke chaincode but the state updates do not seem to be recorded by anyone  other than the peer invoking the chaincode. In other words, if I update the state with some chaincode from peer A, querying the state with some chaincode from peer B will return "null", but the same query (exact same code) from the chaincode ran by peer A will return the state correctly.</p>
  
  <p>Is this normal? I assumed the sate of the ledger was independent of the chaincode peers run, or is the state really chaincode state?</p>
  
  <p>Edit: I've tested installing the chaincode of peer A on peer B, and once that's done it can query the state as required. As I was using different chaincodes to control who could invoke which functions, is there a way to limit which functions can be invoked within chaincode?</p>