0
votes

Is there a way to deploy an update of the chaincode without changing the chaincodeid? If I deploy changes in code, hyperledger generates new hash as chaincodeid and I loose the data created by the app.

Thanks in advance.

Sorry, more info I'm using versión 0.6 with IBM docker images https://github.com/IBM-Blockchain/fabric-images I was also using [email protected] in windows, but if I suscribe to the event hub inside an express application, it dies without any messaging, so now I'm using fabric starter kit with [email protected] (but that's another question)

And more info In https://github.com/hyperledger-archives/fabric/blob/master/docs/Setup/Chaincode-setup.md it is shown how to deploy manually the chaincode in development mode using --peer-chaincodedev and using -n to provide a name name instead of a path; but that is only in development mode.

1
Which fabric version are you using ? - ecn
in fabric v0.6 you can not update the chaincode - aybekbuka

1 Answers

0
votes

There is no way to deploy an update of chaincode in the Fabric v0.6 developer preview. Chaincode lifecycle management was added in the Fabric v1.0 release.