-
jiangyaoguo authored
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>
f30fc741