From c4ec0ebb7d969a10e70cba0f236d80634ad52284 Mon Sep 17 00:00:00 2001 From: NIKHIL E GUPTA Date: Fri, 27 Mar 2020 17:52:04 -0400 Subject: [PATCH] Remove redundant invoke command from test network Signed-off-by: NIKHIL E GUPTA --- test-network/scripts/deployCC.sh | 28 ---------------------------- 1 file changed, 28 deletions(-) diff --git a/test-network/scripts/deployCC.sh b/test-network/scripts/deployCC.sh index 1357898267..ad43d78f6c 100755 --- a/test-network/scripts/deployCC.sh +++ b/test-network/scripts/deployCC.sh @@ -231,31 +231,6 @@ chaincodeInvokeInit() { echo } -chaincodeInvoke() { - parsePeerConnectionParameters $@ - res=$? - verifyResult $res "Invoke transaction failed on channel '$CHANNEL_NAME' due to uneven number of peer and org parameters " - - # while 'peer chaincode' command can get the orderer endpoint from the - # peer (if join was successful), let's supply it directly as we know - # it using the "-o" option - if [ -z "$CORE_PEER_TLS_ENABLED" -o "$CORE_PEER_TLS_ENABLED" = "false" ]; then - set -x - peer chaincode invoke -o localhost:7050 -C $CHANNEL_NAME -n fabcar $PEER_CONN_PARMS -c '{"function":"initLedger","Args":[]}' >&log.txt - res=$? - set +x - else - set -x - peer chaincode invoke -o localhost:7050 --ordererTLSHostnameOverride orderer.example.com --tls $CORE_PEER_TLS_ENABLED --cafile $ORDERER_CA -C $CHANNEL_NAME -n fabcar $PEER_CONN_PARMS -c '{"function":"initLedger","Args":[]}' >&log.txt - res=$? - set +x - fi - cat log.txt - verifyResult $res "Invoke execution on $PEERS failed " - echo "===================== Invoke transaction successful on $PEERS on channel '$CHANNEL_NAME' ===================== " - echo -} - chaincodeQuery() { ORG=$1 setGlobals $ORG @@ -326,9 +301,6 @@ chaincodeInvokeInit 1 2 sleep 10 -## Invoke the chaincode -chaincodeInvoke 1 2 - # Query chaincode on peer0.org1 echo "Querying chaincode on peer0.org1..." chaincodeQuery 1