Skip to content

Commit 77b4090

Browse files
author
Zhangjiong Xuan
committed
[FAB-5992] Fix error in first-network dir
[FAB-5992] Fix error at line 42 of the script.sh in scripts dir, and add tips in byfn.sh. Change-Id: Id05277074dc240c06e1b47ac4eedf349e9555cfa Signed-off-by: Zhangjiong Xuan <xuanzhangjiong@hyperchain.cn>
1 parent 7cca09f commit 77b4090

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

first-network/byfn.sh

+3-3
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ function printHelp () {
4343
echo " - 'restart' - restart the network"
4444
echo " - 'generate' - generate required certificates and genesis block"
4545
echo " -c <channel name> - channel name to use (defaults to \"mychannel\")"
46-
echo " -t <timeout> - CLI timeout duration in microseconds (defaults to 10000)"
46+
echo " -t <timeout> - CLI timeout duration in seconds (defaults to 10000)"
4747
echo " -d <delay> - delay duration in seconds (defaults to 3)"
4848
echo " -f <docker-compose-file> - specify which docker-compose file use (defaults to docker-compose-cli.yaml)"
4949
echo " -s <dbtype> - the database backend to use: goleveldb (default) or couchdb"
@@ -353,9 +353,9 @@ fi
353353

354354
if [ "${IF_COUCHDB}" == "couchdb" ]; then
355355
echo
356-
echo "${EXPMODE} with channel '${CHANNEL_NAME}' and CLI timeout of '${CLI_TIMEOUT}' using database '${IF_COUCHDB}'"
356+
echo "${EXPMODE} with channel '${CHANNEL_NAME}' and CLI timeout of '${CLI_TIMEOUT}' seconds and CLI delay of '${CLI_DELAY}' seconds and using database '${IF_COUCHDB}'"
357357
else
358-
echo "${EXPMODE} with channel '${CHANNEL_NAME}' and CLI timeout of '${CLI_TIMEOUT}'"
358+
echo "${EXPMODE} with channel '${CHANNEL_NAME}' and CLI timeout of '${CLI_TIMEOUT}' seconds and CLI delay of '${CLI_DELAY}' seconds"
359359
fi
360360
# ask for confirmation to proceed
361361
askProceed

first-network/scripts/script.sh

+1-2
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@ setGlobals () {
3939
CORE_PEER_ADDRESS=peer0.org1.example.com:7051
4040
else
4141
CORE_PEER_ADDRESS=peer1.org1.example.com:7051
42-
CORE_PEER_MSPCONFIGPATH=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/users/Admin@org1.example.com/msp
4342
fi
4443
else
4544
CORE_PEER_LOCALMSPID="Org2MSP"
@@ -87,7 +86,7 @@ updateAnchorPeers() {
8786
echo
8887
}
8988

90-
## Sometimes Join takes time hence RETRY atleast for 5 times
89+
## Sometimes Join takes time hence RETRY at least for 5 times
9190
joinWithRetry () {
9291
peer channel join -b $CHANNEL_NAME.block >&log.txt
9392
res=$?

0 commit comments

Comments
 (0)