File tree Expand file tree Collapse file tree 2 files changed +2
-13
lines changed Expand file tree Collapse file tree 2 files changed +2
-13
lines changed Original file line number Diff line number Diff line change @@ -13,10 +13,7 @@ const path = require('path');
1313const ip = require ( 'ip' ) ;
1414const execSync = require ( 'child_process' ) . execSync ;
1515
16- const org1CA = '/etc/hyperledger/config/crypto-config/peerOrganizations/org1.example.com/tlsca/tlsca.org1.example.com-cert.pem' ;
17- const org2CA = '/etc/hyperledger/config/crypto-config/peerOrganizations/org2.example.com/tlsca/tlsca.org2.example.com-cert.pem' ;
1816const ordererCA = '/test-network/organizations/ordererOrganizations/example.com/orderers/orderer.example.com/msp/tlscacerts/tlsca.example.com-cert.pem' ;
19- const tls = process . env . TLS && process . env . TLS . toLowerCase ( ) === 'true' ? true : false ;
2017const dir = path . join ( __dirname , '..' , '..' , 'fabric-samples' ) ;
2118const registerAndEnroll = ( ) => {
2219 const cmd = `export PATH=${ dir } /bin:$PATH && export FABRIC_CFG_PATH=${ dir } /config/ && ` +
@@ -31,11 +28,7 @@ const registerAndEnroll = () => {
3128 execSync ( cmd ) ;
3229} ;
3330const getTLSArgs = ( ) => {
34- if ( tls ) {
35- return `--tls true --cafile ${ dir } ` + ordererCA ;
36- }
37-
38- return '' ;
31+ return `--tls true --cafile ${ dir } ` + ordererCA ;
3932} ;
4033
4134// Increase the timeouts on zLinux!
Original file line number Diff line number Diff line change @@ -10,11 +10,7 @@ const tls = process.env.TLS && process.env.TLS.toLowerCase() === 'true' ? true :
1010exports . tls = tls ;
1111
1212exports . getTLSArgs = ( ) => {
13- if ( tls ) {
14- return `--tls true --cafile ${ dir } ` + ordererCA ;
15- }
16-
17- return '' ;
13+ return `--tls true --cafile ${ dir } ` + ordererCA ;
1814} ;
1915
2016exports . getPeerAddresses = ( ) => {
You can’t perform that action at this time.
0 commit comments