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. 29 Jan, 2017 1 commit
  3. 27 Jan, 2017 1 commit
    • denyeart's avatar
      [FAB-1885] GetTransactionByID to return Tran Envelope · 9ca80f1f
      denyeart authored
      
      
      QSCC GetTransactionByID should return a Transaction  Envelope,
      not a Transaction. The Envelope contains the signature and
      Payload, which contains the transaction header and Transaction.
      
      Clients will want the transaction header information when retrieving
      the transaction.  They may also want the signature to verify that
      the transaction hasn't changed since the time they submitted it.
      The return type will change from Transaction proto to Envelope proto.
      
      Change-Id: I1de238035c3b6cd00abb3ed8506c54566ee0f2b0
      Signed-off-by: default avatardenyeart <enyeart@us.ibm.com>
      9ca80f1f
  4. 26 Jan, 2017 1 commit
  5. 24 Jan, 2017 1 commit
    • jiangyaoguo's avatar
      FAB-1457 Change return value of chaincode · a5e2d2b5
      jiangyaoguo authored
      Replace return value of chaincode form ([]byte, error) to pb.Response.
      So that we can define different kinds of errors. More detail could be
      seen at https://jira.hyperledger.org/browse/FAB-1457
      
      . Now chaincode
      result will pass through shim/chaincode_spoort without converting.
      This commit define basic Status Code(200 for success and 500 for error).
      More code defination and handle logic will be added in following commit.
      Change chaincode examples interfaces and use basic code(200/500).
      
      Change-Id: I2ace7f4f654d343874274c26847f0dac91050d26
      Signed-off-by: default avatarjiangyaoguo <jiangyaoguo@gmail.com>
      a5e2d2b5
  6. 17 Jan, 2017 1 commit
    • Xi Xue Jia's avatar
      [FAB-1390] Refactor ledger interface names · d58d51be
      Xi Xue Jia authored
      https://jira.hyperledger.org/browse/FAB-1390
      
      
      
      A few things changed according to FAB-1390 description and the latest NCAP
      1. renamed RawLedger interface to OrdererLedger
      2. added PeerLedger interface which keeps a bitmask to indicate invalid transactions as described in NCAP
      3. changed ledger API description in Next-Ledger-Architecture-Proposal
      4. refactored rawledger package to ordererledger in orderer directory
      
      Please notice that with this change set, there'll be cases of inconsistent package names with import path.
      This is a tradeoff to avoid stuttering path names
      These cases are listed as below.
      
      Package name, import path
      (ordererledger, github.com/hyperledger/fabric/orderer/ledger)
      (ramledger, github.com/hyperledger/fabric/orderer/ledger/ram)
      (fileledger, github.com/hyperledger/fabric/orderer/ledger/file)
      
      Change-Id: Ie9580678ee9012ff865d1dc507066f46e106f250
      Signed-off-by: default avatarXi Xue Jia <xixuejia@gmail.com>
      d58d51be
  7. 15 Jan, 2017 1 commit
    • Binh Q. Nguyen's avatar
      Ledger query APIs · c14896aa
      Binh Q. Nguyen authored
      
      
      This system chaincode provides ledger structural query APIs such
      as GetTransactionByID, GetBlockByHash, etc. Currently the inputs
      require a channel name rather using the channel from the -C
      parameter. That will change on next iteration when we change the
      chaincode invocation to pass the channel name.
      
      For example, to invoke with CLI
      peer chaincode query -C "" -n qscc -c '{"Args":["GetTransactionByID","mychannel","txid"]}'
      
      Change-Id: I31da536f5dd72bb73b0444d8ee11b1b6093c136d
      Signed-off-by: default avatarBinh Q. Nguyen <binhn@us.ibm.com>
      c14896aa