@@ -247,19 +247,19 @@ func getDeploymentSpec(_ context.Context, spec *pb.ChaincodeSpec) (*pb.Chaincode
247
247
return cdDeploymentSpec , nil
248
248
}
249
249
250
- //getDeployLCCCSpec gets the spec for the chaincode deployment to be sent to LCCC
251
- func getDeployLCCCSpec (chainID string , cds * pb.ChaincodeDeploymentSpec ) (* pb.ChaincodeInvocationSpec , error ) {
250
+ //getDeployLSCCSpec gets the spec for the chaincode deployment to be sent to LSCC
251
+ func getDeployLSCCSpec (chainID string , cds * pb.ChaincodeDeploymentSpec ) (* pb.ChaincodeInvocationSpec , error ) {
252
252
b , err := proto .Marshal (cds )
253
253
if err != nil {
254
254
return nil , err
255
255
}
256
256
257
257
sysCCVers := util .GetSysCCVersion ()
258
258
259
- //wrap the deployment in an invocation spec to lccc ...
260
- lcccSpec := & pb.ChaincodeInvocationSpec {ChaincodeSpec : & pb.ChaincodeSpec {Type : pb .ChaincodeSpec_GOLANG , ChaincodeId : & pb.ChaincodeID {Name : "lccc " , Version : sysCCVers }, Input : & pb.ChaincodeInput {Args : [][]byte {[]byte ("deploy" ), []byte (chainID ), b }}}}
259
+ //wrap the deployment in an invocation spec to lscc ...
260
+ lsccSpec := & pb.ChaincodeInvocationSpec {ChaincodeSpec : & pb.ChaincodeSpec {Type : pb .ChaincodeSpec_GOLANG , ChaincodeId : & pb.ChaincodeID {Name : "lscc " , Version : sysCCVers }, Input : & pb.ChaincodeInput {Args : [][]byte {[]byte ("deploy" ), []byte (chainID ), b }}}}
261
261
262
- return lcccSpec , nil
262
+ return lsccSpec , nil
263
263
}
264
264
265
265
// Deploy a chaincode - i.e., build and initialize.
@@ -274,9 +274,9 @@ func deploy(ctx context.Context, cccid *ccprovider.CCContext, spec *pb.Chaincode
274
274
}
275
275
276
276
func deploy2 (ctx context.Context , cccid * ccprovider.CCContext , chaincodeDeploymentSpec * pb.ChaincodeDeploymentSpec , blockNumber uint64 ) (b []byte , err error ) {
277
- cis , err := getDeployLCCCSpec (cccid .ChainID , chaincodeDeploymentSpec )
277
+ cis , err := getDeployLSCCSpec (cccid .ChainID , chaincodeDeploymentSpec )
278
278
if err != nil {
279
- return nil , fmt .Errorf ("Error creating lccc spec : %s\n " , err )
279
+ return nil , fmt .Errorf ("Error creating lscc spec : %s\n " , err )
280
280
}
281
281
282
282
ctx , txsim , err := startTxSimulation (ctx , cccid .ChainID )
@@ -303,10 +303,10 @@ func deploy2(ctx context.Context, cccid *ccprovider.CCContext, chaincodeDeployme
303
303
ccprovider .PutChaincodeIntoFS (chaincodeDeploymentSpec )
304
304
305
305
sysCCVers := util .GetSysCCVersion ()
306
- lcccid := ccprovider .NewCCContext (cccid .ChainID , cis .ChaincodeSpec .ChaincodeId .Name , sysCCVers , uuid , true , nil , nil )
306
+ lsccid := ccprovider .NewCCContext (cccid .ChainID , cis .ChaincodeSpec .ChaincodeId .Name , sysCCVers , uuid , true , nil , nil )
307
307
308
- //write to lccc
309
- if _ , _ , err = ExecuteWithErrorFilter (ctx , lcccid , cis ); err != nil {
308
+ //write to lscc
309
+ if _ , _ , err = ExecuteWithErrorFilter (ctx , lsccid , cis ); err != nil {
310
310
return nil , fmt .Errorf ("Error deploying chaincode: %s" , err )
311
311
}
312
312
@@ -1473,7 +1473,7 @@ func TestChaincodeQueryChaincodeUsingInvoke(t *testing.T) {
1473
1473
}
1474
1474
1475
1475
// Test the execution of a chaincode that invokes system chaincode
1476
- // uses the "pthru" chaincode to query "lccc " for the "pthru" chaincode
1476
+ // uses the "pthru" chaincode to query "lscc " for the "pthru" chaincode
1477
1477
func TestChaincodeInvokesSystemChaincode (t * testing.T ) {
1478
1478
chainID := util .GetTestChainID ()
1479
1479
@@ -1512,9 +1512,9 @@ func TestChaincodeInvokesSystemChaincode(t *testing.T) {
1512
1512
1513
1513
time .Sleep (time .Second )
1514
1514
1515
- //send an invoke to pass thru to query "lccc " system chaincode on chainID to get
1515
+ //send an invoke to pass thru to query "lscc " system chaincode on chainID to get
1516
1516
//information about "pthru"
1517
- args = util .ToChaincodeArgs ("lccc /" + chainID , "getid" , chainID , "pthru" )
1517
+ args = util .ToChaincodeArgs ("lscc /" + chainID , "getid" , chainID , "pthru" )
1518
1518
1519
1519
spec = & pb.ChaincodeSpec {Type : 1 , ChaincodeId : cID , Input : & pb.ChaincodeInput {Args : args }}
1520
1520
// Invoke chaincode
@@ -1529,7 +1529,7 @@ func TestChaincodeInvokesSystemChaincode(t *testing.T) {
1529
1529
1530
1530
if string (retval ) != "pthru" {
1531
1531
t .Fail ()
1532
- t .Logf ("Expected to get back \" pthru\" from lccc but got back %s" , string (retval ))
1532
+ t .Logf ("Expected to get back \" pthru\" from lscc but got back %s" , string (retval ))
1533
1533
theChaincodeSupport .Stop (ctxt , cccid , & pb.ChaincodeDeploymentSpec {ChaincodeSpec : spec })
1534
1534
return
1535
1535
}
0 commit comments