Skip to content

Commit 4e5c20f

Browse files
committed
[FAB-16303] GetHistoryForKey release note
In prior releases, the GetHistoryForKey chaincode API had no guarantees on the order of returned results. Starting in Fabric v2.0, the GetHistoryForKey chaincode API will return results from newest to oldest in terms of ordered transaction height (block height and transaction height within block). This will allow applications to iterate through the top results to understand recent changes to a key. Change-Id: I747c35300819cf7427d601a1935766a8ce9aa840 Signed-off-by: David Enyeart <enyeart@us.ibm.com>
1 parent 05c4c12 commit 4e5c20f

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

release_notes/v2.0.0.txt

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ installing chaincode by using different SDKs. To workaround the problem,
5454
package the chaincode prior to installation and instantiation, by using
5555
the "peer chaincode package" command.
5656

57-
FAB-15366 Logger removed from chaincode shim
57+
FAB-15366 - Logger removed from chaincode shim
5858
Chaincode that used the shim's NewLogger() will need to shift to a new
5959
logging mechanism. Chaincode logging is intended to be the responsibility
6060
of the application developer. As such it should be handled using tools and
@@ -72,6 +72,15 @@ Chaincode implementations that used the entities extension package from an
7272
earlier version of Fabric will need to vendor a 1.x version of the package
7373
for as part of their chaincode package.
7474

75+
FAB-16303 - GetHistoryForKey returns results from newest to oldest
76+
In prior releases, the GetHistoryForKey chaincode API had no
77+
guarantees on the order of returned results.
78+
Starting in Fabric v2.0, the GetHistoryForKey chaincode API
79+
will return results from newest to oldest in terms of ordered transaction
80+
height (block height and transaction height within block).
81+
This will allow applications to iterate through the top results
82+
to understand recent changes to a key.
83+
7584
Known Vulnerabilities
7685
---------------------
7786
FAB-8664 - Peer should detect and react when its org has been removed

0 commit comments

Comments
 (0)