1. 03 Feb, 2017 1 commit
    • manish's avatar
      Move Blockstorage code under /fabric/common package · 2a16532c
      manish authored
      https://jira.hyperledger.org/browse/FAB-2022
      
      
      
      This changes introduced by this CR
      - Moves the block storage code from package
      core/ledger/blkstorage to common/ledger/blkstorage
      
      - Splits the ledger_interface.go so as to move common interfaces
      and data type to common/ledger package
      
      - Moves some of the util functions to common/ledger package
      
      - Moves core/ledger/ordererledger package to orderer/ledger/fsledger
      orderer folks can futher rename/refactor this as seems suitable to them
      
      Change-Id: I759e16f00dc2ec9bb62196121083cf48eae76948
      Signed-off-by: default avatarmanish <manish.sethi@gmail.com>
      2a16532c
  2. 05 Jan, 2017 1 commit
    • Artem Barger's avatar
      Code cleanup, removing duplicates of envelope decoding · 152ce786
      Artem Barger authored
      
      
      There are several places in the code which implements
      logic of decoding byte array into Envelope, there is
      method available inside txutils.go called GetEnvelopeFromBlock,
      there is GetEnvelope from proputils.go and there is
      ExtractEnvelope from commonutils.go.
      
      This commits removes duplicate and switching to reuse single
      method from txutils.go.
      
      Change-Id: Ia7a963cfd0df85377ef4294d2dba33cca1eb904b
      Signed-off-by: default avatarArtem Barger <bartem@il.ibm.com>
      152ce786
  3. 13 Dec, 2016 1 commit
    • Mari Wade's avatar
      FAB-1336 Add new ledger blockstorage index. · 458c5212
      Mari Wade authored
      
      
      Add a new ledger blockstorage index for History
      that will map (blocknum,trannum) to the file storage
      location for this block transaction
      
      This index will be used for the API  GetTransactionsForKey()
      for (chaincode1,key1).  It will do a key range query on chaincode1~key1
      to pick up all chaincode1~key1 records.  Results will indicate
      the set of (blocknum,trannum) transactions that updated this key.
      
      Change-Id: I81da09e5526d7e2966634c78a03d34011d514442
      Signed-off-by: default avatarMari Wade <mariwade@us.ibm.com>
      458c5212
  4. 01 Dec, 2016 1 commit