@@ -399,7 +399,7 @@ func deployCC(t *testing.T, ctx context.Context, cccid *ccprovider.CCContext, sp
399
399
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 (cccid .ChainID ), b }}}}
400
400
401
401
sprop , prop := putils .MockSignedEndorserProposal2OrPanic (cccid .ChainID , lsccSpec .ChaincodeSpec , signer )
402
- lsccid := ccprovider .NewCCContext (cccid .ChainID , lsccSpec .ChaincodeSpec .ChaincodeId .Name , sysCCVers , cccid .TxID , true , sprop , prop )
402
+ lsccid := ccprovider .NewCCContext (cccid .ChainID , lsccSpec .ChaincodeSpec .ChaincodeId .Name , sysCCVers , cccid .TxID , sprop , prop )
403
403
404
404
//write to lscc
405
405
if _ , _ , err := chaincodeSupport .Execute (ctx , lsccid , lsccSpec ); err != nil {
@@ -443,13 +443,13 @@ func initializeCC(t *testing.T, chainID, ccname string, ccSide *mockpeer.MockCCC
443
443
Responses : []* mockpeer.MockResponse {resp },
444
444
}
445
445
446
- cccid := ccprovider .NewCCContext (chainID , ccname , "0" , txid , false , sprop , prop )
446
+ cccid := ccprovider .NewCCContext (chainID , ccname , "0" , txid , sprop , prop )
447
447
execCC (t , ctxt , ccSide , cccid , false , true , done , cis , respSet , chaincodeSupport )
448
448
449
449
//set the right TxID in response now
450
450
resp .RespMsg .(* pb.ChaincodeMessage ).Txid = txid
451
451
452
- badcccid := ccprovider .NewCCContext (chainID , ccname , "unknownver" , txid , false , sprop , prop )
452
+ badcccid := ccprovider .NewCCContext (chainID , ccname , "unknownver" , txid , sprop , prop )
453
453
454
454
//we are not going to reach the chaincode and so won't get a response from it. processDone will not
455
455
//be triggered by the chaincode stream. We just expect an error from fabric. Hence pass nil for done
@@ -513,7 +513,7 @@ func invokeCC(t *testing.T, chainID, ccname string, ccSide *mockpeer.MockCCComm,
513
513
},
514
514
}
515
515
516
- cccid := ccprovider .NewCCContext (chainID , ccname , "0" , txid , false , sprop , prop )
516
+ cccid := ccprovider .NewCCContext (chainID , ccname , "0" , txid , sprop , prop )
517
517
execCC (t , ctxt , ccSide , cccid , false , false , done , cis , respSet , chaincodeSupport )
518
518
519
519
//delete the extra var
@@ -570,7 +570,7 @@ func invokePrivateDataGetPutDelCC(t *testing.T, chainID, ccname string, ccSide *
570
570
},
571
571
}
572
572
573
- cccid := ccprovider .NewCCContext (chainID , ccname , "0" , txid , false , sprop , prop )
573
+ cccid := ccprovider .NewCCContext (chainID , ccname , "0" , txid , sprop , prop )
574
574
execCC (t , ctxt , ccSide , cccid , false , true , done , cis , respSet , chaincodeSupport )
575
575
576
576
respSet = & mockpeer.MockResponseSet {
@@ -586,7 +586,7 @@ func invokePrivateDataGetPutDelCC(t *testing.T, chainID, ccname string, ccSide *
586
586
},
587
587
}
588
588
589
- cccid = ccprovider .NewCCContext (chainID , ccname , "0" , txid , false , sprop , prop )
589
+ cccid = ccprovider .NewCCContext (chainID , ccname , "0" , txid , sprop , prop )
590
590
execCC (t , ctxt , ccSide , cccid , false , false , done , cis , respSet , chaincodeSupport )
591
591
592
592
endTx (t , cccid , txsim , cis )
@@ -603,7 +603,7 @@ func invokePrivateDataGetPutDelCC(t *testing.T, chainID, ccname string, ccSide *
603
603
},
604
604
}
605
605
606
- cccid = ccprovider .NewCCContext (chainID , ccname , "0" , txid , false , sprop , prop )
606
+ cccid = ccprovider .NewCCContext (chainID , ccname , "0" , txid , sprop , prop )
607
607
execCC (t , ctxt , ccSide , cccid , false , true , done , cis , respSet , chaincodeSupport )
608
608
609
609
endTx (t , cccid , txsim , cis )
@@ -676,7 +676,7 @@ func getQueryStateByRange(t *testing.T, collection, chainID, ccname string, ccSi
676
676
Responses : mkpeer ,
677
677
}
678
678
679
- cccid := ccprovider .NewCCContext (chainID , ccname , "0" , txid , false , sprop , prop )
679
+ cccid := ccprovider .NewCCContext (chainID , ccname , "0" , txid , sprop , prop )
680
680
if collection == "" {
681
681
execCC (t , ctxt , ccSide , cccid , false , false , done , cis , respSet , chaincodeSupport )
682
682
} else {
@@ -717,7 +717,7 @@ func cc2cc(t *testing.T, chainID, chainID2, ccname string, ccSide *mockpeer.Mock
717
717
mockAclProvider .On ("CheckACL" , resources .Lscc_GetChaincodeData , chainID , sprop ).Return (nil )
718
718
mockAclProvider .On ("CheckACL" , resources .Peer_Propose , chainID , sprop ).Return (nil )
719
719
720
- cccid := ccprovider .NewCCContext (chainID , calledCC , "0" , txid , false , sprop , prop )
720
+ cccid := ccprovider .NewCCContext (chainID , calledCC , "0" , txid , sprop , prop )
721
721
722
722
deployCC (t , ctxt , cccid , cis .ChaincodeSpec , chaincodeSupport )
723
723
@@ -763,7 +763,7 @@ func cc2cc(t *testing.T, chainID, chainID2, ccname string, ccSide *mockpeer.Mock
763
763
}
764
764
calledCCSide .SetResponses (respSet2 )
765
765
766
- cccid = ccprovider .NewCCContext (chainID , ccname , "0" , txid , false , sprop , prop )
766
+ cccid = ccprovider .NewCCContext (chainID , ccname , "0" , txid , sprop , prop )
767
767
768
768
execCC (t , ctxt , ccSide , cccid , false , true , done , cis , respSet , chaincodeSupport )
769
769
@@ -803,7 +803,7 @@ func cc2cc(t *testing.T, chainID, chainID2, ccname string, ccSide *mockpeer.Mock
803
803
804
804
calledCCSide .SetResponses (respSet2 )
805
805
806
- cccid = ccprovider .NewCCContext (chainID , ccname , "0" , txid , false , sprop , prop )
806
+ cccid = ccprovider .NewCCContext (chainID , ccname , "0" , txid , sprop , prop )
807
807
808
808
execCC (t , ctxt , ccSide , cccid , false , true , done , cis , respSet , chaincodeSupport )
809
809
@@ -887,7 +887,7 @@ func getQueryResult(t *testing.T, collection, chainID, ccname string, ccSide *mo
887
887
Responses : mkpeer ,
888
888
}
889
889
890
- cccid := ccprovider .NewCCContext (chainID , ccname , "0" , txid , false , sprop , prop )
890
+ cccid := ccprovider .NewCCContext (chainID , ccname , "0" , txid , sprop , prop )
891
891
if collection == "" {
892
892
execCC (t , ctxt , ccSide , cccid , false , false , done , cis , respSet , chaincodeSupport )
893
893
} else {
@@ -952,7 +952,7 @@ func getHistory(t *testing.T, chainID, ccname string, ccSide *mockpeer.MockCCCom
952
952
},
953
953
}
954
954
955
- cccid := ccprovider .NewCCContext (chainID , ccname , "0" , txid , false , sprop , prop )
955
+ cccid := ccprovider .NewCCContext (chainID , ccname , "0" , txid , sprop , prop )
956
956
execCC (t , ctxt , ccSide , cccid , false , false , done , cis , respSet , chaincodeSupport )
957
957
958
958
endTx (t , cccid , txsim , cis )
@@ -962,7 +962,7 @@ func getHistory(t *testing.T, chainID, ccname string, ccSide *mockpeer.MockCCCom
962
962
963
963
func getLaunchConfigs (t * testing.T , cr * ContainerRuntime ) {
964
964
gt := NewGomegaWithT (t )
965
- ccContext := ccprovider .NewCCContext ("dummyChannelId" , "mycc" , "v0" , "dummyTxid" , false , nil , nil )
965
+ ccContext := ccprovider .NewCCContext ("dummyChannelId" , "mycc" , "v0" , "dummyTxid" , nil , nil )
966
966
lc , err := cr .LaunchConfig (ccContext .GetCanonicalName (), pb .ChaincodeSpec_GOLANG .String ())
967
967
if err != nil {
968
968
t .Fatalf ("calling getLaunchConfigs() failed with error %s" , err )
@@ -1262,7 +1262,7 @@ func cc2SameCC(t *testing.T, chainID, chainID2, ccname string, ccSide *mockpeer.
1262
1262
mockAclProvider .On ("CheckACL" , resources .Lscc_GetChaincodeData , chainID2 , sprop ).Return (nil )
1263
1263
mockAclProvider .On ("CheckACL" , resources .Peer_Propose , chainID2 , sprop ).Return (nil )
1264
1264
1265
- cccid := ccprovider .NewCCContext (chainID2 , ccname , "0" , txid , false , sprop , prop )
1265
+ cccid := ccprovider .NewCCContext (chainID2 , ccname , "0" , txid , sprop , prop )
1266
1266
1267
1267
deployCC (t , ctxt , cccid , cis .ChaincodeSpec , chaincodeSupport )
1268
1268
@@ -1302,7 +1302,7 @@ func cc2SameCC(t *testing.T, chainID, chainID2, ccname string, ccSide *mockpeer.
1302
1302
},
1303
1303
}
1304
1304
1305
- cccid = ccprovider .NewCCContext (chainID , ccname , "0" , txid , false , sprop , prop )
1305
+ cccid = ccprovider .NewCCContext (chainID , ccname , "0" , txid , sprop , prop )
1306
1306
1307
1307
execCC (t , ctxt , ccSide , cccid , false , true , done , cis , respSet , chaincodeSupport )
1308
1308
0 commit comments