-
Notifications
You must be signed in to change notification settings - Fork 8.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[FAB-2223] GetHistoryForKey Chaincode API
Expose GetHistoryForKey ledger API to chaincode. HistoryQueryExecutor utilizes a history database separate from state database, therefore it is made available outside the normal TxSimulator to minimize impact to state transactions (e.g. reduce lock times). HistoryQueryExecutor is made available to chaincode context, supporting GetHistoryForKey function calls from chaincode. Similar to GetQueryResult, existing chaincode iterator and Next support are re-used. marbles02 getHistoryForKey example is delivered. Call chaincode function as follows: peer chaincode invoke -C myc1 -n marbles -c '{"Args":["getHistoryForMarble","marble1"]}' Additional unit tests will be delivered next. Change-Id: Iee4dd92b27deb7c42cb83991fb6a3b924edd1e63 Signed-off-by: denyeart <enyeart@us.ibm.com>
- Loading branch information
Showing
11 changed files
with
415 additions
and
129 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.