sitalab / FlightChain

FlightChain is a reference project for the SITA Aviation Sandbox
https://www.developer.aero/Blockchain/Aviation-Blockchain-Sandbox
Apache License 2.0
5 stars 1 forks source link

add script to delete chaincode #5

Open sinead-kelly opened 6 years ago

sinead-kelly commented 6 years ago

When a chaincode is upgraded with a new version, the old version is not automatically removed. We need a script to clean up old chaincodes

sinead-kelly commented 6 years ago

To remove a chaincode we have to remove the chaincode’s container on each of the hosts or virtual machines on which the endorsing peer nodes are running, and then delete the SignedCDS from each of the endorsing peer nodes:

docker rm -f <container id>
rm /var/hyperledger/production/chaincodes/<ccname>:<ccversion>
sinead-kelly commented 6 years ago

functionality for removing old chaincode seems to be in progress by the hyperledger developers