#fabric-questions LifecycleEndorsement with signature policy: ENDORSEMENT_FAILURE #fabric-questions

Mattia Bolzonella

I've specified a policy for the LifecycleEndorsement in my configtx.yaml and it is:
         Type: Signature
         Rule: "OR('MyOrgMSP.admin')"
But when I try to commit the chaincode I get ENDORSEMENT_FAILURE in the peer logs because the identity being evaluated is the peer identity. How can I get the admin identity to be evaluated? The cli, from which I execute the commit command, has CORE_PEER_MSPCONFIGPATH  set to the org admin folder.
The chaincode is approved only by MyOrg (and I expect that is enough considering the LifecycleEndorsement policy)

Join fabric@lists.hyperledger.org to automatically receive all group messages.