mirror of
https://github.com/hyperledger/fabric-samples.git
synced 2026-06-22 17:45:10 +00:00
Remove redundant invoke command from test network (#142)
Signed-off-by: NIKHIL E GUPTA <negupta@us.ibm.com> Co-authored-by: NIKHIL E GUPTA <negupta@us.ibm.com>
This commit is contained in:
parent
851933b33e
commit
b155620192
1 changed files with 0 additions and 28 deletions
|
|
@ -242,31 +242,6 @@ chaincodeInvokeInit() {
|
||||||
echo
|
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() {
|
chaincodeQuery() {
|
||||||
ORG=$1
|
ORG=$1
|
||||||
setGlobals $ORG
|
setGlobals $ORG
|
||||||
|
|
@ -337,9 +312,6 @@ chaincodeInvokeInit 1 2
|
||||||
|
|
||||||
sleep 10
|
sleep 10
|
||||||
|
|
||||||
## Invoke the chaincode
|
|
||||||
chaincodeInvoke 1 2
|
|
||||||
|
|
||||||
# Query chaincode on peer0.org1
|
# Query chaincode on peer0.org1
|
||||||
echo "Querying chaincode on peer0.org1..."
|
echo "Querying chaincode on peer0.org1..."
|
||||||
chaincodeQuery 1
|
chaincodeQuery 1
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue