test_channel_join.sh 499 B

123456789101112131415161718192021222324
  1. #!/bin/bash
  2. # Importing useful functions for cc testing
  3. if [ -f ./func.sh ]; then
  4. source ./func.sh
  5. elif [ -f scripts/func.sh ]; then
  6. source scripts/func.sh
  7. fi
  8. ## Join all the peers to the channel
  9. echo_b "Having all peers join the channel ${APP_CHANNEL}..."
  10. for org in "${ORGS[@]}"
  11. do
  12. for peer in "${PEERS[@]}"
  13. do
  14. channelJoin ${APP_CHANNEL} $org $peer
  15. done
  16. done
  17. #channelJoin ${APP_CHANNEL} 1 0
  18. #channelJoin ${APP_CHANNEL} 1 1
  19. #channelJoin ${APP_CHANNEL} 2 0
  20. #channelJoin ${APP_CHANNEL} 2 1