Uploaded image for project: 'Fabric'
  1. Fabric
  2. FAB-18373

GetHistoryForKey API with both start and end pointers

    XMLWordPrintable

Details

    • No
    • Yes
    • Yes

    Description

      In 1.4.3 it was given a pointer to the first state of the chain by using GetHistoryForKey API.

      Thanks to the iterator it was possible to navigate the chain from start to end.

      In newer versions of HLF the iterator now starts from the end of the chain, so the last element.

      My chaincode was done to navigate in a certain way and this breaks the mechanism. Also, to navigate from start to end, the only thing I can do is to reverse an array and this could be an intensive operation with long chains. 

      I think that having both pointers would grant more chaincode possibilities to developers and is a really needed thing.

      Attachments

        Activity

          People

            Unassigned Unassigned
            ricba1995 Riccardo Basso
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: