azure-aks - 如何在 Azure Kubernetes 服务 (AKS) 上升级 Hyperledger Fabric 联盟中的链代码
问题描述
我在 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
解决方案
我在github上查看了 azhlf 链码的源代码,它只支持上面列出的操作。您必须提出功能请求才能将升级添加到 azhftools 命令中才能直接使用它。
推荐阅读
- facebook - Facebook - 如何从 Instant Games 中删除加载屏幕
- php - 如何在我的服务中使用学说方法(Symfony 4)?
- javascript - 在服务器调用中获取部分 redux 状态
- node.js - Node.js - 使用 MSSQL 包动态添加多个参数
- javascript - 打印多个 iframe 内容
- php - 在表单上使用 Guzzle 登录 - 在 test.de 上发布请求
- java - Cucumber JVM - 获取所有场景的参考
- c# - Outlook 将 PGP 消息解密为 html
- android - 信号 11 (SIGSEGV)、代码 1 (SEGV_MAPERR) 仅在某些设备上崩溃
- c - 使用 || 检查长 case 语句的更快方法 条件