Skip to content
  • jiangyaoguo's avatar
    [FAB-3330] validate chaincode version · f30fc741
    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: default avatarjiangyaoguo <jiangyaoguo@gmail.com>
    f30fc741