0

I set up hyperledger fabric on Hyperledger Fabric consortium on Azure Kubernetes Service (AKS) . After successfull installation, I made some changes in this path (samples/chaincode/src/chaincode_example02/go/chaincode_example02.go). Now I want to update this chaincode changes into the network. I have referred here. I seems like azure-cli does not has upgrade command. Can someone help me to upgrade chaincode using azhlfTool. Here is available command,

sa@Azure:~/azhlfTool$ ./azhlf chaincode help
./azhlf chaincode <command>

Chaincode commands

Commands:
  ./azhlf chaincode install      Installs chaincode to the peers. Should be called with peer.
  ./azhlf chaincode instantiate  Instantiate chaincode to the application channel. Should be called with peer.
  ./azhlf chaincode invoke       Invoke chaincode on the application channel. Should be called with peer.
  ./azhlf chaincode query        Query chaincode on the application channel. Should be called with peer.

Not enough non-option arguments: got 0, need at least 1
Gurunath
  • 341
  • 3
  • 17
  • Thanks Gurunath! We have known this requirement. AKS HLF is for experiencing template deployments of HLF and the azhlfTool code with it has been open-sourced for that purpose. One way is you can modify the azhlfTool in way you wish to use it, or you can make use of a local fabric-tools container (as a peer CLI) for performing all the available native HLF operations. – Chintan Rajvir Jul 13 '20 at 11:45

1 Answers1

0

I looked at the source code of azhlf chaincode on github, it only supports above listed operations. You will have to raise a feature request to add upgrade into azhftools command in order to use it directly.

Atul
  • 1,116
  • 1
  • 10
  • 20