Im facing a problem here, I created a channel with one organization ORG1 (using orderer orderer1), then I added ORG2 and then ORG3 by updating the channel config block using the cli command:
peer channel update -f nada_update_in_envelope.pb -c $CHANNEL_NAME -o orderer.example.com:7050 --tls --cafile $ORDERER_CA
The next thing I want to do is to add one anchor peer for each organization. By running for each organization's anchor peer:
peer channel update -o orderer1.example.com:7050 -c mainchannel -f channel-artifacts/org1/channels/mainchannel/mainchannel/ORG1MSPanchors.tx --tls --cafile <path>
The error I'm getting from the orderer's logs is:
2019-01-01 13:50:19.095 UTC [orderer.common.broadcast] ProcessMessage -> WARN 076 [channel: mainchannel] Rejecting broadcast of config message from 172.25.0.23:39260 because of error: error authorizing update: error validating ReadSet: readset expected key [Group] /Channel/Application at version 1, but got version 3
Any idea what can I change to set the correct configuration version in the ORG1MSPanchors.tx file that I created before stating the network and creating the channel???
P.S: The ORG1MSPanchors.tx file was generated from the configtx.yaml file by running:
../bin/configtxgen -profile OneOrgsChannel -outputAnchorPeersUpdate ./channel-artifacts/ORG1MSPanchors.tx -channelID mainchannel -asOrg ORG1MSP