2017-04-24 103 views
0

我是Hyperledger新手。我使用碼頭運行Hyperledger。從Docker集線器拉出hyperledger/fabric-peer:latest,並且 能夠在我的Chaincode中運行stub.CreateTable(),stub.GetRows(),stub.InsertRows()和一些其他功能。但是,當我試圖在我的chaincode 運行stub.GetHistoryKeys()報告GetHistoryKeys()函數未定義。當試圖去建立我的Chaincode

stub.GetHistoryKeys() or stub.GetCompositeKeys() ...etc它報告錯誤

stub.GetHistoryForKey undefined (type shim.ChaincodeStubInterface has no field 
    or method GetHistoryForKey) 

我發現,在我的interface.go文件有沒有這樣的功能。 Google搜索了很多,但什麼都沒找到。任何人都可以告訴正確的hyperledger/fabric-peer圖片,以便上述功能可以在Chaincode中運行。

回答

0

最後我能夠弄清楚爲了獲得hyperledger圖像來支持我的chaincode。

相關問題