Error in Commercial Paper Example


Trevor Lee Oakley <trevor@...>
 

The first part works, then the final commit fails (page 202 of the Fabric 2.0 manual) - 
 
 
 
 peer lifecycle chaincode commit -o localhost:7050 --ordererTLSHostnameOverride orderer.example.com --peerAddresses localhost:7051 --tlsRootCertFiles ${PEER0_ORG1_CA} --peerAddresses localhost:9051 --tlsRootCertFiles ${PEER0_ORG2_CA} --channelID mychannel --name papercontract -v 0 --sequence 1 --tls --cafile $ORDERER_CA --waitForEvent
Error: proposal failed with status: 500 - failed to invoke backing implementation of 'CommitChaincodeDefinition': chaincode definition not agreed to by this org (Org1MSP)
ubuntu@ip-10-0-1-151:~/fabric-samples/commercial-paper/organization/magnetocorp$ 
 
I tried switching to Digibank, sourcing the file for that Org and the same error. It seems related to the definition but that was approved. 
 
:~/fabric-samples/commercial-paper/organization/magnetocorp$ peer lifecycle chaincode queryinstalled
Installed chaincodes on peer:
Package ID: cp_0:71f681bb6359681f7bcde58ce3521cd49364409668e361b90255496a0be31bc6, Label: cp_0
ubuntu@ip-10-0-1-151:~/fabric-samples/commercial-paper/organization/magnetocorp$ 
 
What am I missing?
 
 

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