Intellipaat Back

Explore Courses Blog Tutorials Interview Questions
0 votes
2 views
in Blockchain by (4.1k points)

I am trying to query the chaincode example 02 that I have deployed in the local blockchain installation.

I have tried both inside and outside vagrant setup as described by hyperledger-fabric docs.

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.

1 Answer

0 votes
by (14.4k points)
edited by

You have this issue because there might be some time gap between a chaincode invocation and the subsequent query. 

Refer https://github.com/IBM-Blockchain/ibm-blockchain-issues/issues/20 to gain more insights on the subject. 

There is a lot more to learn than this. Enroll now in Blockchain Online Course to learn more.

31k questions

32.8k answers

501 comments

693 users

Browse Categories

...