Skip to content

Commit 312af12

Browse files
committed
[FAB-3334] Add ChaincodeID to ChaincodeAction
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 <[email protected]>
1 parent e4074ce commit 312af12

File tree

2 files changed

+50
-29
lines changed

2 files changed

+50
-29
lines changed

protos/peer/proposal.pb.go

+43-29
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

protos/peer/proposal.proto

+7
Original file line numberDiff line numberDiff line change
@@ -263,4 +263,11 @@ message ChaincodeAction {
263263

264264
// This field contains the result of executing this invocation.
265265
Response response = 3;
266+
267+
// This field contains the ChaincodeID of executing this invocation. Endorser
268+
// will set it with the ChaincodeID called by endorser while simulating proposal.
269+
// Committer will validate the version matching with latest chaincode version.
270+
// Adding ChaincodeID to keep version opens up the possibility of multiple
271+
// ChaincodeAction per transaction.
272+
ChaincodeID chaincode_id = 4;
266273
}

0 commit comments

Comments
 (0)