Add a new channel
create channel configuration
configtxgen -profile TwoOrgsChannel -outputCreateChannelTx ./channel-artifacts/newchannel.tx -channelID newchannel
generate anchor peer configuratoin for Organizations
#for organizations 1 configtxgen -profile TwoOrgsChannel -outputAnchorPeersUpdate ./channel-artifacts/Org1MSPanchors.tx -channelID newchannel -asOrg Org1MSP #for organizations 2 configtxgen -profile TwoOrgsChannel -outputAnchorPeersUpdate ./channel-artifacts/Org2MSPanchors.tx -channelID newchannel -asOrg Org2MSP
create a channel
peer channel create -o orderer.example.com:7050 -c newchannel -f ./channel-artifacts/newchannel.tx
join new channel
peer channel join -b newchannel.block -o orderer.example.com:7050
update anchor peer
peer channel update -o orderer.example.com:7050 -c newchannel -f ./channel-artifacts/Org1MSPanchors.tx