Published on

Hyperledger Fabric: Installing vs Updating Chaincode

Authors

With Fabric when installing chaincode you specify the name and version of the chaincode. The code is responsible for keep track of the state related to it and only it can access the state of values it modifies on the chain. But if another chaincode has sufficient privileges it can read another's data.

I completely forgot about this. When making changes to our chaincode (while we are busy with a PoC) we are simply changing the name of the code instead of the version of the code. Also when updating you are meant to use the update operation as opposed to the install operation but updating is slightly more involved.