Validating Peer in Blockchain Service in Bluemix does not recognize shim.ChaincodeStubInterface?

时间:2016-11-09 08:28:44

标签: api ibm-cloud blockchain hyperledger

I am able to deploy a chaincode in a locally running Hyperledger validating peer.

The chaincode uses the following object:

shim.ChaincodeStubInterface

I tried to deploy the same chaincode in the validating peer of a Bluemix Blockchain service. However, the deployment is not successful as it does not recognize shim.ChaincodeStubInterface.

I checked sample chaincodes in Bluemix and found out that it uses the shim.ChaincodeStub instead of shim.ChaincodeStubInterface.

Does this mean that the Hyperledger API in Bluemix does not recognize shim.ChaincodeStubInterface? If yes, when will the API of the Bluemix Blockchain service be updated to the latest version?

1 个答案:

答案 0 :(得分:0)

bluemix服务在2016年11月10日之前使用了Hyperledger Fabric的旧版本 v0.5 。此版本使用旧语法,shim.ChaincodeStub

bluemix service status page表明,在2016年11月10日,bluemix上的Fabric版本已更新为 v0.6.1 。这个较新的版本应该使用您尝试使用的新语法,即shim.ChaincodeStubInterface。因此,如果您只是再次订购bluemix服务,它应该可以解决您的问题。