简体   繁体   English

查询功能不适用于已部署的链代码

[英]Query function does not work for deployed chaincode

I am trying to query the chaincode example 02 that I have deployed in the local blockchain installation. 我正在尝试查询我在本地区块链安装中部署的链代码示例02。

I have tried both inside and outside vagrant setup as described by hyperledger-fabric docs. 我已经尝试了hyperledger-fabric docs描述的vagrant设置内外。

The chaincode go file build successfully and the deployed seems to word. 链代码成功构建文件,部署似乎是单词。

The invoke function generates the transaction hash, however as soon as I query the state of variable A using the chaincode hash id, it always indicates an error indicating that the chaincode is not deployed successfully. invoke函数生成事务哈希,但是只要我使用chaincode hash id查询变量A的状态,它总是指示一个错误,表明链代码未成功部署。

There should be some time gap between a chaincode invocation and the subsequent query. 链代码调用和后续查询之间应该有一些时间间隔。 Refer https://github.com/IBM-Blockchain/ibm-blockchain-issues/issues/20 请参阅https://github.com/IBM-Blockchain/ibm-blockchain-issues/issues/20

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM