Skip to content

Commit

Permalink
[FAB-3334] Add ChaincodeID to ChaincodeAction
Browse files Browse the repository at this point in the history
Add ChaincodeID to ChaincodeAction, so that we can
set it while endorsing proposal (FAB-3329) and validate
version (FAB-3330) in committer. Make this minimal
CR for following CRs could be committed concurrently.

Change-Id: I16f8d8c2c0d06ce7cae155791665f98bb52fe000
Signed-off-by: jiangyaoguo <jiangyaoguo@gmail.com>
  • Loading branch information
jiangyaoguo committed Apr 22, 2017
1 parent e4074ce commit 312af12
Show file tree
Hide file tree
Showing 2 changed files with 50 additions and 29 deletions.
72 changes: 43 additions & 29 deletions protos/peer/proposal.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 7 additions & 0 deletions protos/peer/proposal.proto
Original file line number Diff line number Diff line change
Expand Up @@ -263,4 +263,11 @@ message ChaincodeAction {

// This field contains the result of executing this invocation.
Response response = 3;

// This field contains the ChaincodeID of executing this invocation. Endorser
// will set it with the ChaincodeID called by endorser while simulating proposal.
// Committer will validate the version matching with latest chaincode version.
// Adding ChaincodeID to keep version opens up the possibility of multiple
// ChaincodeAction per transaction.
ChaincodeID chaincode_id = 4;
}

0 comments on commit 312af12

Please sign in to comment.