-
Notifications
You must be signed in to change notification settings - Fork 8.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[FAB-3330] validate chaincode version
1. Add VsccOutputData struct to keep output of vscc. Vscc will return proposalResponsePayload(has verison info) bytes contained in ChaincodeAction. 2. When committer validates transaction, check that the chaincode version in ProposalResponse matches the verision in lscc. 3. Add new ValidateCode to distinguash two kinds of invalid reason because of chaincode upgrade. 4. vsccValidatorImpl will return latest chaincodeInstance from lscc and vsccOutputData from vscc. So we can mock system chaincode in UT. 5. Move ChaincodeInstance to sysccprovider to avoid cycle import. Change-Id: I45387f119054d64b57d28173cabda0194a9e3464 Signed-off-by: jiangyaoguo <jiangyaoguo@gmail.com>
- Loading branch information
1 parent
ca3a1a2
commit f30fc74
Showing
11 changed files
with
356 additions
and
135 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
Oops, something went wrong.