MCPcopy
hub / github.com/hyperledger/fabric / Notify

Method Notify

core/chaincode/handler.go:573–583  ·  view source on GitHub ↗
(msg *pb.ChaincodeMessage)

Source from the content-addressed store, hash-verified

571}
572
573func (h *Handler) Notify(msg *pb.ChaincodeMessage) {
574 tctx := h.TXContexts.Get(msg.ChannelId, msg.Txid)
575 if tctx == nil {
576 chaincodeLogger.Debugf("notifier Txid:%s, channelID:%s does not exist for handling message %s", msg.Txid, msg.ChannelId, msg.Type)
577 return
578 }
579
580 chaincodeLogger.Debugf("[%s] notifying Txid:%s, channelID:%s", shorttxid(msg.Txid), msg.Txid, msg.ChannelId)
581 tctx.ResponseNotifier <- msg
582 tctx.CloseQueryIterators()
583}
584
585// is this a txid for which there is a valid txsim
586func (h *Handler) isValidTxSim(channelID string, txid string, fmtStr string, args ...any) (*TransactionContext, error) {

Callers 14

serialSendAsyncMethod · 0.95
handleSignalsFunction · 0.45
LaunchMethod · 0.45
BuildMethod · 0.45
handler_test.goFile · 0.45
WorkMethod · 0.45
lifecycle_test.goFile · 0.45
InstallChaincodeMethod · 0.45
custodian_test.goFile · 0.45

Calls 4

DebugfMethod · 0.80
CloseQueryIteratorsMethod · 0.80
shorttxidFunction · 0.70
GetMethod · 0.65

Tested by

no test coverage detected