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

19 lines
482 B
Bash
Raw Normal View History

2018-01-03 21:19:09 +08:00
#!/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
2018-01-18 13:31:00 +08:00
echo_b "=== Updating anchor peers to peer0 for org1... ==="
2018-01-03 21:19:09 +08:00
channelUpdate ${APP_CHANNEL} 1 0 Org1MSPanchors.tx
2018-01-18 13:31:00 +08:00
echo_b "=== Updating anchor peers to peer0 for org2... ==="
2018-01-03 21:19:09 +08:00
channelUpdate ${APP_CHANNEL} 2 0 Org2MSPanchors.tx
2018-01-18 13:31:00 +08:00
echo_b "=== Updated anchor peers ==="
echo