Re: peer lifecycle chaincode commit error 500
Will Lahti
Hey Antoni,
As pointed out by the output of CheckCommitReadiness, with your current network configuration, the peer is looking at both Org1 and Org2 for approvals before the chaincode definition can be committed. The signature policy you're setting in the definition is the endorsement policy for the chaincode itself. To commit a chaincode definition, the lifecycle endorsement policy must be satisfied. By default, that is set to a majority of the endorsement policies for each organization participating in the channel.
To get things working, you'll either need to
1) submit an approval using credentials for org1 (easiest given your current configuration)
2) update the LifecycleEndorsement policy for the channel from "MAJORITY Endorsement" to "ANY Endorsement" in configtx.yaml (assuming this is a network you don't mind spinning up fresh, otherwise you'll need to perform a config update to update the policy).
Feel free to reach out to me directly if you need further assistance!
Regards,
----- Original message -----
|
|