Skip to content

Commit

Permalink
FAB-1198-rm old pb.Transaction, pb.Block
Browse files Browse the repository at this point in the history
NOTE - Removing of old proto.Transaction is the cause for
the large change set. It affects chaincode framework and
all users of the framework such as endorser, system chaincodes,
unit tests etc.

Transaction2 is renamed to Transaction.
Response2 is renamed to Response.
Message2 is renamed to Message.

The changes are fully described in
    https://jira.hyperledger.org/browse/FAB-1198

Summary
=======
   . Remove old Transaction and rename Transaction2
   . Cleanup of Chaincode protobuf message
   . Add TxID for SDK and higher layers to optionally
     set (currently errors if not set)

ChaincodeMessage removes QUERY and QUERY_CHAINCODE enums.

Shim interface does not enforce Query or QueryChaincode.

chaincode_example02 and 05 implement Query function via
the Invoke implementation.

The "noop" system chaincode is removed
   . it was using Transaction which is not an endorser
     artifact any longer
   . there are many system chaincodes to that thoroughly
     test sys chaincode functions

Change-Id: Ib77b7e5a6756eac47e888309816076580ae505e7
Signed-off-by: Srinivasan Muralidharan <muralisr@us.ibm.com>
  • Loading branch information
Srinivasan Muralidharan committed Nov 27, 2016
1 parent d016edb commit 61affa0
Show file tree
Hide file tree
Showing 78 changed files with 1,020 additions and 2,833 deletions.
5 changes: 4 additions & 1 deletion bddtests/chaincode.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,9 @@ func createProposalForChaincode(ccChaincodeDeploymentSpec *pb.ChaincodeDeploymen
ChaincodeID: &pb.ChaincodeID{Name: "lccc"},
CtorMsg: &pb.ChaincodeInput{Args: [][]byte{[]byte("deploy"), []byte("default"), ccDeploymentSpecBytes}}}
lcChaincodeInvocationSpec := &pb.ChaincodeInvocationSpec{ChaincodeSpec: lcChaincodeSpec}

uuid := createPropsalID()

// make proposal
return putils.CreateChaincodeProposal(lcChaincodeInvocationSpec, creator)
return putils.CreateChaincodeProposal(uuid, lcChaincodeInvocationSpec, creator)
}
95 changes: 0 additions & 95 deletions bddtests/syschaincode/noop/chaincode.go

This file was deleted.

133 changes: 0 additions & 133 deletions bddtests/syschaincode/noop/chaincode_test.go

This file was deleted.

0 comments on commit 61affa0

Please sign in to comment.