mirror of
https://github.com/hyperledger/fabric-samples.git
synced 2026-06-18 16:05:10 +00:00
Adding support to upgrade from 1.3.x to 1.4.0 using upgrade_to_v14.sh and changes to byfn.sh For this, no v1_4 capabilities need to be enabled other than v1_3 capabilities on channel and application group level Only upgrading the images from v1.3.x to v.1.4.0 for peer, orderer, cli, ccenv Change-Id: I991f96c2deb3c91870ec4654aa8b561f49594248 Signed-off-by: Surya Lanka <suryalnvs@gmail.com>
66 lines
1.6 KiB
Bash
Executable file
66 lines
1.6 KiB
Bash
Executable file
#!/bin/bash
|
|
|
|
echo
|
|
echo " ____ _____ _ ____ _____ "
|
|
echo "/ ___| |_ _| / \ | _ \ |_ _|"
|
|
echo "\___ \ | | / _ \ | |_) | | | "
|
|
echo " ___) | | | / ___ \ | _ < | | "
|
|
echo "|____/ |_| /_/ \_\ |_| \_\ |_| "
|
|
echo
|
|
echo "Upgrade your first network (BYFN) from v1.3.x to v1.4.x end-to-end test"
|
|
echo
|
|
CHANNEL_NAME="$1"
|
|
DELAY="$2"
|
|
LANGUAGE="$3"
|
|
TIMEOUT="$4"
|
|
VERBOSE="$5"
|
|
: ${CHANNEL_NAME:="mychannel"}
|
|
: ${DELAY:="5"}
|
|
: ${LANGUAGE:="golang"}
|
|
: ${TIMEOUT:="10"}
|
|
: ${VERBOSE:="false"}
|
|
LANGUAGE=$(echo "$LANGUAGE" | tr [:upper:] [:lower:])
|
|
COUNTER=1
|
|
MAX_RETRY=5
|
|
|
|
CC_SRC_PATH="github.com/chaincode/chaincode_example02/go/"
|
|
if [ "$LANGUAGE" = "node" ]; then
|
|
CC_SRC_PATH="/opt/gopath/src/github.com/chaincode/chaincode_example02/node/"
|
|
fi
|
|
|
|
echo "Channel name : "$CHANNEL_NAME
|
|
|
|
# import utils
|
|
. scripts/utils.sh
|
|
|
|
sleep $DELAY
|
|
|
|
#Query on chaincode on Peer0/Org1
|
|
echo "Querying chaincode on org1/peer0..."
|
|
chaincodeQuery 0 1 90
|
|
|
|
sleep $DELAY
|
|
|
|
#Invoke on chaincode on Peer0/Org1
|
|
echo "Sending invoke transaction on org1/peer0..."
|
|
chaincodeInvoke 0 1 0 2
|
|
|
|
sleep $DELAY
|
|
|
|
#Query on chaincode on Peer0/Org1
|
|
echo "Querying chaincode on org1/peer0..."
|
|
chaincodeQuery 0 1 80
|
|
|
|
echo
|
|
echo "===================== All GOOD, End-2-End UPGRADE Scenario execution completed ===================== "
|
|
echo
|
|
|
|
echo
|
|
echo " _____ _ _ ____ _____ ____ _____ "
|
|
echo "| ____| | \ | | | _ \ | ____| |___ \ | ____|"
|
|
echo "| _| | \| | | | | | _____ | _| __) | | _| "
|
|
echo "| |___ | |\ | | |_| | |_____| | |___ / __/ | |___ "
|
|
echo "|_____| |_| \_| |____/ |_____| |_____| |_____|"
|
|
echo
|
|
|
|
exit 0
|