docker-compose-files/hyperledger_fabric/v1.0.2/scripts/test_update_anchors.sh

16 lines
404 B
Bash

#!/bin/bash
# Importing useful functions for cc testing
if [ -f ./func.sh ]; then
source ./func.sh
elif [ -f scripts/func.sh ]; then
source scripts/func.sh
fi
## Set the anchor peers for each org in the channel
echo_b "Updating anchor peers for org1..."
channelUpdate ${APP_CHANNEL} 1 0 Org1MSPanchors.tx
echo_b "Updating anchor peers for org2..."
channelUpdate ${APP_CHANNEL} 2 0 Org2MSPanchors.tx