Updating chaincode
HLF supports chaincode versioning and upgrading. You can update chaincode when a smart contract needs to be altered, the business logic is changed, or any changes are required in the chaincode. Chaincode can be upgraded to a new version, as long as you maintain the same name of the chaincode, else it will be considered different chaincode.
An update is a transaction on the blockchain network and it results in the binding of the new version of the chaincode to the channel. What happens to the old version of the chaincode? All of the other channels that are binding to the previous (old) version of the chaincode can continue to execute the older version. You submit the chaincode upgrade transaction to a channel. Hence, only ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access