Skip to content

Commit

Permalink
remove tunnelAddress as mandatory
Browse files Browse the repository at this point in the history
  • Loading branch information
dviejokfs committed Jan 29, 2022
1 parent 9708cf5 commit 69bf9b9
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions cmd/start/start.go
Original file line number Diff line number Diff line change
Expand Up @@ -76,9 +76,6 @@ func (c startCmd) validate() error {
if c.chaincode == "" {
return errors.New("--chaincode is required")
}
if c.tunnelAddress == "" {
return errors.New("--tunnelAddress is required")
}
if c.localChaincodeAddress == "" {
return errors.New("--localChaincodeAddress is required")
}
Expand Down Expand Up @@ -243,6 +240,7 @@ func (c startCmd) run() error {
}
dotEnvFile := fmt.Sprintf(`
CORE_CHAINCODE_ID=%s
CORE_CHAINCODE_ID_NAME=%s
CORE_CHAINCODE_ADDRESS=%s
CORE_CHAINCODE_TLS_KEY_FILE=%s
CORE_CHAINCODE_TLS_CERT_FILE=%s
Expand All @@ -252,6 +250,7 @@ CORE_PEER_TLS_ROOTCERT_FILE=%s
CORE_TLS_CLIENT_KEY_FILE=%s
CORE_TLS_CLIENT_CERT_FILE=%s
`,
m.DeployChaincode.PackageID,
m.DeployChaincode.PackageID,
c.localChaincodeAddress,
chaincodeKeyPath,
Expand Down

0 comments on commit 69bf9b9

Please sign in to comment.