0

我在 Azure Kubernetes Service (AKS) 上的 Hyperledger Fabric consortium 上设置了 hyperledger Fabric 。安装成功后,我在这个路径(samples/chaincode/src/chaincode_example02/go/chaincode_example02.go)做了一些修改。现在我想将此链码更改更新到网络中。我在这里提到过。我好像 azure-cli 没有升级命令。有人可以帮我使用 azhlfTool 升级链代码吗?这是可用的命令,

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
4

1 回答 1

0

我在github上查看了 azhlf 链码的源代码,它只支持上面列出的操作。您必须提出功能请求才能将升级添加到 azhftools 命令中才能直接使用它。

于 2020-07-07T11:44:50.767 回答