2017-07-24 11:59
浏览 172

如何在Hyperledger Fabric V0.6 Chaincode实现中查询一段时间的状态

I am using the Hyperledger fabric V0.6 service in IBM-bluemix and deployed my go language chaincode to the peer as provided in the bluemix documentation. Since I am very new to this implementation, I could find only the PutState and GetState methods there in ChaincodeStubInterface.
But my requirement is to query the states for a period of time.
11-Feb-2017 10:00:00 : created Asset1
11-Feb-2017 12:00:00 : created Asset2
12-Feb-2017 10:00:00 : Modified Asset1
13-Feb-2017 13:00:00 : Created Asset3
15-Feb-2017 14:00:00 : Created AssetN

Now I want to query the states for the range 12-Feb-2017 00:00:00 to current timestamp. I have gone through lots of documentations but I didn't find any solution for this.

How can I get this data? Thanks in advance.

  • 写回答
  • 好问题 提建议
  • 追加酬金
  • 关注问题
  • 邀请回答

1条回答 默认 最新

相关推荐 更多相似问题