Skip to content

Commit

Permalink
recover chaincode_support
Browse files Browse the repository at this point in the history
  • Loading branch information
guo-li-hua committed May 28, 2022
1 parent a6f185d commit 8877b0e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions contracts/core/chaincode_support.go
Original file line number Diff line number Diff line change
Expand Up @@ -407,7 +407,7 @@ func (chaincodeSupport *ChaincodeSupport) getLaunchConfigs(cccid *ccprovider.CCC
} else {
envs = append(envs, "CORE_PEER_TLS_ENABLED=false")
}
chaincodeSupport.chaincodeLogLevel = "info"
//chaincodeSupport.chaincodeLogLevel = "info"
if chaincodeSupport.chaincodeLogLevel != "" {
envs = append(envs, "CORE_CHAINCODE_LOGGING_LEVEL="+chaincodeSupport.chaincodeLogLevel)
}
Expand All @@ -426,7 +426,7 @@ func (chaincodeSupport *ChaincodeSupport) getLaunchConfigs(cccid *ccprovider.CCC
case pb.PtnChaincodeSpec_GOLANG, pb.PtnChaincodeSpec_CAR:
//args = []string{"chaincode", fmt.Sprintf("-peer.address=%s", chaincodeSupport.peerAddress)}
//args = []string{"/bin/sh", "-c", "cd / && tar -xvf binpackage.tar -C $GOPATH/bin && rm binpackage.tar && rm Dockerfile && cd $GOPATH/bin && ./chaincode"}
args = []string{"/bin/sh", "-c", "cd / && tar -xvf binpackage.tar -C $GOPATH/bin && cd $GOPATH/bin && chmod 777 -R ./chaincode && ./chaincode"}
args = []string{"/bin/sh", "-c", "cd / && tar -xvf binpackage.tar -C $GOPATH/bin && cd $GOPATH/bin && ./chaincode"}
case pb.PtnChaincodeSpec_JAVA:
args = []string{"java", "-jar", "chaincode.jar", "--peerAddress", chaincodeSupport.peerAddress}
case pb.PtnChaincodeSpec_NODE:
Expand Down

0 comments on commit 8877b0e

Please sign in to comment.