stub.GetHistoryKeys()报告GetHistoryKeys()函数未定义。 当试图去build立我的Chaincode

我是Hyperledger的新手 。我使用docker来运行Hyperledger。 hyperledger/fabric-peer:latest来自Docker集线器的hyperledger/fabric-peer:latest ,能够在我的Chaincode中运行stub.CreateTable()stub.GetRows()stub.InsertRows()和其他一些函数。 但是当我试图跑步

stub.GetHistoryKeys() or stub.GetCompositeKeys() ...etc在我的chaincode它报告错误

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

我发现在我的interface.go文件中没有这样的function。 谷歌search了很多,但什么都没find。任何人都可以告诉正确的hyperledger/fabric-peer图像,以便上述function可以在Chaincode中运行。

最后,我能够弄清楚,以获得hyperledger图像,以支持我的chaincode。