Skip to content

Commit

Permalink
[FAB-5992] Fix error in first-network dir
Browse files Browse the repository at this point in the history
[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>
  • Loading branch information
Zhangjiong Xuan committed Sep 11, 2017
1 parent 7cca09f commit 77b4090
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
6 changes: 3 additions & 3 deletions first-network/byfn.sh
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ function printHelp () {
echo " - 'restart' - restart the network"
echo " - 'generate' - generate required certificates and genesis block"
echo " -c <channel name> - channel name to use (defaults to \"mychannel\")"
echo " -t <timeout> - CLI timeout duration in microseconds (defaults to 10000)"
echo " -t <timeout> - CLI timeout duration in seconds (defaults to 10000)"
echo " -d <delay> - delay duration in seconds (defaults to 3)"
echo " -f <docker-compose-file> - specify which docker-compose file use (defaults to docker-compose-cli.yaml)"
echo " -s <dbtype> - the database backend to use: goleveldb (default) or couchdb"
Expand Down Expand Up @@ -353,9 +353,9 @@ fi

if [ "${IF_COUCHDB}" == "couchdb" ]; then
echo
echo "${EXPMODE} with channel '${CHANNEL_NAME}' and CLI timeout of '${CLI_TIMEOUT}' using database '${IF_COUCHDB}'"
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}'"
else
echo "${EXPMODE} with channel '${CHANNEL_NAME}' and CLI timeout of '${CLI_TIMEOUT}'"
echo "${EXPMODE} with channel '${CHANNEL_NAME}' and CLI timeout of '${CLI_TIMEOUT}' seconds and CLI delay of '${CLI_DELAY}' seconds"
fi
# ask for confirmation to proceed
askProceed
Expand Down
3 changes: 1 addition & 2 deletions first-network/scripts/script.sh
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@ setGlobals () {
CORE_PEER_ADDRESS=peer0.org1.example.com:7051
else
CORE_PEER_ADDRESS=peer1.org1.example.com:7051
CORE_PEER_MSPCONFIGPATH=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/users/Admin@org1.example.com/msp
fi
else
CORE_PEER_LOCALMSPID="Org2MSP"
Expand Down Expand Up @@ -87,7 +86,7 @@ updateAnchorPeers() {
echo
}

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

0 comments on commit 77b4090

Please sign in to comment.