Skip to content

Commit 5180a08

Browse files
committed
[FAB-4112] Remove legacy code
Remove useless legacy code in file core/chaincode/exectransaction.go Change-Id: Ic8273d171fbed9ae1d43ba6f17bf72323eb03c6b Signed-off-by: jiangyaoguo <[email protected]>
1 parent 52f1942 commit 5180a08

File tree

1 file changed

+1
-12
lines changed

1 file changed

+1
-12
lines changed

core/chaincode/exectransaction.go

+1-12
Original file line numberDiff line numberDiff line change
@@ -41,22 +41,11 @@ func Execute(ctxt context.Context, cccid *ccprovider.CCContext, spec interface{}
4141
cctyp = pb.ChaincodeMessage_TRANSACTION
4242
}
4343

44-
cID, cMsg, err := theChaincodeSupport.Launch(ctxt, cccid, spec)
44+
_, cMsg, err := theChaincodeSupport.Launch(ctxt, cccid, spec)
4545
if err != nil {
4646
return nil, nil, fmt.Errorf("%s", err)
4747
}
4848

49-
//this should work because it worked above...
50-
chaincode := cID.Name
51-
52-
if err != nil {
53-
return nil, nil, fmt.Errorf("Failed to stablish stream to container %s", chaincode)
54-
}
55-
56-
if err != nil {
57-
return nil, nil, fmt.Errorf("Failed to retrieve chaincode spec(%s)", err)
58-
}
59-
6049
var ccMsg *pb.ChaincodeMessage
6150
ccMsg, err = createCCMessage(cctyp, cccid.TxID, cMsg)
6251
if err != nil {

0 commit comments

Comments
 (0)