Closed thanhnam72 closed 6 years ago
I updated chaincode by change version on file install_chaincode.js and instantiate_chaincode,js, but I want to remove previous version chaincode on peer, can you help me
Fabric does not have any sort of kill/suicide function. The chaincode you instantiated cannot be un-instantiated.
What we can do is stop/kill the chaincode's docker container. You can get the list of running containers on your network with the command docker ps
and then stop the chaincode you wish to stop with docker stop <container id here, partial id is fine>
. docker stop details
this will end the process running that chaincode, BUT it can and will come back if you send a proposal to that chaincode id/version. this is just how Fabric works. if your goal is to have this chaincode never run again, you should stop its container and don't query/invoke it again.
thank @dshuffma-ibm
I have add some function in file chaincode\src\marbles\marbles.go but server socket can't call these function. I think chaincode not update yet, so I use node upgrade_chaincode.js , but occur error followed: