@@ -261,23 +261,6 @@ func (handler *Handler) checkACL(signedProp *pb.SignedProposal, proposal *pb.Pro
261
261
return handler .policyChecker .CheckPolicy (ccIns .ChainID , policies .ChannelApplicationWriters , signedProp )
262
262
}
263
263
264
- //THIS CAN BE REMOVED ONCE WE FULL SUPPORT (Invoke) CONFIDENTIALITY WITH CC-CALLING-CC
265
- //Only invocation are allowed
266
- func (handler * Handler ) canCallChaincode (txid string , isQuery bool ) * pb.ChaincodeMessage {
267
- var errMsg string
268
- txctx := handler .getTxContext (txid )
269
- if txctx == nil {
270
- errMsg = fmt .Sprintf ("[%s]Error no context while checking for confidentiality. Sending %s" , shorttxid (txid ), pb .ChaincodeMessage_ERROR )
271
- }
272
-
273
- if errMsg != "" {
274
- return & pb.ChaincodeMessage {Type : pb .ChaincodeMessage_ERROR , Payload : []byte (errMsg ), Txid : txid }
275
- }
276
-
277
- //not CONFIDENTIAL transaction, OK to call CC
278
- return nil
279
- }
280
-
281
264
func (handler * Handler ) deregister () error {
282
265
if handler .registered {
283
266
handler .chaincodeSupport .deregisterHandler (handler )
@@ -1151,42 +1134,6 @@ func (handler *Handler) handleGetHistoryForKey(msg *pb.ChaincodeMessage) {
1151
1134
}()
1152
1135
}
1153
1136
1154
- // afterPutState handles a PUT_STATE request from the chaincode.
1155
- func (handler * Handler ) afterPutState (e * fsm.Event , state string ) {
1156
- _ , ok := e .Args [0 ].(* pb.ChaincodeMessage )
1157
- if ! ok {
1158
- e .Cancel (fmt .Errorf ("Received unexpected message type" ))
1159
- return
1160
- }
1161
- chaincodeLogger .Debugf ("Received %s in state %s, invoking put state to ledger" , pb .ChaincodeMessage_PUT_STATE , state )
1162
-
1163
- // Put state into ledger handled within enterBusyState
1164
- }
1165
-
1166
- // afterDelState handles a DEL_STATE request from the chaincode.
1167
- func (handler * Handler ) afterDelState (e * fsm.Event , state string ) {
1168
- _ , ok := e .Args [0 ].(* pb.ChaincodeMessage )
1169
- if ! ok {
1170
- e .Cancel (fmt .Errorf ("Received unexpected message type" ))
1171
- return
1172
- }
1173
- chaincodeLogger .Debugf ("Received %s, invoking delete state from ledger" , pb .ChaincodeMessage_DEL_STATE )
1174
-
1175
- // Delete state from ledger handled within enterBusyState
1176
- }
1177
-
1178
- // afterInvokeChaincode handles an INVOKE_CHAINCODE request from the chaincode.
1179
- func (handler * Handler ) afterInvokeChaincode (e * fsm.Event , state string ) {
1180
- _ , ok := e .Args [0 ].(* pb.ChaincodeMessage )
1181
- if ! ok {
1182
- e .Cancel (fmt .Errorf ("Received unexpected message type" ))
1183
- return
1184
- }
1185
- chaincodeLogger .Debugf ("Received %s in state %s, invoking another chaincode" , pb .ChaincodeMessage_INVOKE_CHAINCODE , state )
1186
-
1187
- // Invoke another chaincode handled within enterBusyState
1188
- }
1189
-
1190
1137
// Handles request to ledger to put state
1191
1138
func (handler * Handler ) enterBusyState (e * fsm.Event , state string ) {
1192
1139
go func () {
0 commit comments