首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Bluemix 1.0更新后无法使用IBM区块链服务(Hyperledger 0.6)

Bluemix 1.0更新后无法使用IBM区块链服务(Hyperledger 0.6)
EN

Stack Overflow用户
提问于 2016-11-16 20:32:45
回答 1查看 218关注 0票数 0

我和我的团队正在开发一个使用Bluemix区块链服务的应用程序,我们一直使用该应用程序,直到1.0更新。我们认为这可能是与ibm-blockchain.js库相关的错误,但是我们尝试通过REST部署它,仍然收到错误:

代码语言:javascript
复制
{
 "jsonrpc": "2.0",
 "error": {
     "code": -32001,
     "message": "Deployment failure",
     "data": "Error when deploying chaincode: Error getting chaincode package bytes: Error getting code 'go get' failed with error: 'exit status 2'\n# github.com/ibm-blockchain/learn-chaincode/finished\n/go/_usercode_/493306176/src/github.com/ibm-blockchain/learn-chaincode/finished/chaincode_finished.go:38: undefined: shim.ChaincodeStubInterface\n/go/_usercode_/493306176/src/github.com/ibm-blockchain/learn-chaincode/finished/chaincode_finished.go:52: undefined: shim.ChaincodeStubInterface\n/go/_usercode_/493306176/src/github.com/ibm-blockchain/learn-chaincode/finished/chaincode_finished.go:67: undefined: shim.ChaincodeStubInterface\n/go/_usercode_/493306176/src/github.com/ibm-blockchain/learn-chaincode/finished/chaincode_finished.go:80: undefined: shim.ChaincodeStubInterface\n/go/_usercode_/493306176/src/github.com/ibm-blockchain/learn-chaincode/finished/chaincode_finished.go:99: undefined: shim.ChaincodeStubInterface\n"
     },
 "id": 1
}

我们的服务仍在使用0.5版本。我们还将本地版本更新为1.0,并尝试相同的版本来查看错误是否相同,看起来是相同的:

代码语言:javascript
复制
12:16:55.666 [devops] getChaincodeBytes -> ERRO 034 Error getting chaincode package bytes: Error getting code 'go get' failed with error: "exit status 1"
package github.com/VitorSousaCode/chaincodes/tree/master/final: cannot find package "github.com/VitorSousaCode/chaincodes/tree/master/final" in any of:
    /opt/go/src/github.com/VitorSousaCode/chaincodes/tree/master/final (from $GOROOT)
    /opt/gopath/_usercode_/796234422/src/github.com/VitorSousaCode/chaincodes/tree/master/final (from $GOPATH)
    /opt/gopath/src/github.com/VitorSousaCode/chaincodes/tree/master/final
12:16:55.671 [devops] Deploy -> ERRO 035 Error deploying chaincode spec: type:GOLANG chaincodeID:<path:"https://github.com/VitorSousaCode/chaincodes/tree/master/final" > ctorMsg:<args:"init" > secureContext:"user_type1_xxxxxxxxx"

有没有人有过类似的经历?有没有人知道有没有什么方法可以让我们继续使用我们之前开发的Go链代码,而不应用重大的更改?

EN

回答 1

Stack Overflow用户

发布于 2016-11-17 11:50:27

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

bluemix service status page显示,2016年10月11日,bluemix上的Fabric版本已更新为v0.6.1。这个新版本应该使用新的语法,即shim.ChaincodeStubInterface

部署事务失败,因为链代码中的语法与fabric版本不一致。

便笺

票数 3
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/40632277

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档