-
Notifications
You must be signed in to change notification settings - Fork 516
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
FAB-938 Catch up e2e test to latest Peer protobuf
Due to the changes in protobuf definitions around proposal response and Transaction object, the end-to-end test that has the code to build the Transaction object from ProposalResponse must be updated to work with the latest Peer code. Also removed unused old proto files. Change-Id: Ib1ba0c0e504a4ce10d7c1069380c9b90640b0e38 Signed-off-by: Jim Zhang <jzhang@us.ibm.com>
- Loading branch information
1 parent
3ca4e6f
commit eb8eeac
Showing
13 changed files
with
183 additions
and
852 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
/* | ||
Copyright IBM Corp. 2016 All Rights Reserved. | ||
Licensed under the Apache License, Version 2.0 (the "License"); | ||
you may not use this file except in compliance with the License. | ||
You may obtain a copy of the License at | ||
http://www.apache.org/licenses/LICENSE-2.0 | ||
Unless required by applicable law or agreed to in writing, software | ||
distributed under the License is distributed on an "AS IS" BASIS, | ||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
See the License for the specific language governing permissions and | ||
limitations under the License. | ||
*/ | ||
|
||
syntax = "proto3"; | ||
|
||
package protos; | ||
|
||
import "fabric_proposal_response.proto"; | ||
|
||
// ChaincodeActionPayload is the message to be used for the TransactionAction's | ||
// payload when the Header's type is set to CHAINCODE. It carries the | ||
// chaincodeProposalPayload and an endorsed action to apply to the ledger. | ||
message ChaincodeActionPayload { | ||
|
||
// This field contains the bytes of the ChaincodeProposalPayload message from | ||
// the original invocation (essentially the arguments) after the application | ||
// of the visibility function. The main visibility modes are "full" (the | ||
// entire ChaincodeProposalPayload message is included here), "hash" (only | ||
// the hash of the ChaincodeProposalPayload message is included) or | ||
// "nothing". This field will be used to check the consistency of | ||
// ProposalResponsePayload.proposalHash. For the CHAINCODE type, | ||
// ProposalResponsePayload.proposalHash is supposed to be H(ProposalHeader || | ||
// f(ChaincodeProposalPayload)) where f is the visibility function. | ||
bytes chaincodeProposalPayload = 1; | ||
|
||
// The list of actions to apply to the ledger | ||
ChaincodeEndorsedAction action = 2; | ||
} | ||
|
||
// ChaincodeEndorsedAction carries information about the endorsement of a | ||
// specific proposal | ||
message ChaincodeEndorsedAction { | ||
|
||
// This is the bytes of the ProposalResponsePayload message signed by the | ||
// endorsers. Recall that for the CHAINCODE type, the | ||
// ProposalResponsePayload's extenstion field carries a ChaincodeAction | ||
bytes proposalResponsePayload = 1; | ||
|
||
// The endorsement of the proposal, basically the endorser's signature over | ||
// proposalResponsePayload | ||
repeated Endorsement endorsements = 2; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -24,4 +24,4 @@ message ChaincodeEvent { | |
string txID = 2; | ||
string eventName = 3; | ||
bytes payload = 4; | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.