Reputation: 11
While following the tutorial Chaincode for Developers - Testing Using dev mode, one has already installed and instantiated one's chaincode and is required to run a new version.
Having followed the instructions in the chaincode-docker-devmode
directory of fabric samples, one modified the chaincode and was required to install and upgrade the new version to test it, although one got an error:
endorse upgrade proposal, get response <status:500 message:"chaincode registration failed: container exited with 0" > Error: could not assemble transaction, err proposal response was not successful, error code 500, msg chaincode registration failed: container exited with 0
Any ideas about what might be the problem?
First, one installed the NEW chaincode version running the command:
peer chaincode install -p chaincodedev/chaincode/myCC -n myCC -v 5
and then instantiated it using:
peer chaincode upgrade -n myCC -v 5 -c '{"Args": []}' -C myc
However, one's 'init' method did not have any arguments.
Upvotes: 0
Views: 165