In other words, you just need to send to
the peer the QSCC query without asking discovery for endorsers for QSCC.
From:
"Yacov" <yacovm@...>
To:
neeroz.kumar29@...
Cc:
fabric@...
Date:
06/09/2021 12:26 AM
Subject:
[EXTERNAL] Re:
[Hyperledger Fabric] how to invoke the QSCC system chaincode? #fabric-sdk-go
Sent by:
fabric@...
You can't query discovery for QSCC. You don't
need to use discovery, since every peer has QSCC. From: neeroz.kumar29@...
To: fabric@... Date: ZjQcmQRYFpfptBannerStart
This Message Is From an External Sender
This message came from outside your organization.
ZjQcmQRYFpfptBannerEnd
You can't query discovery for QSCC. You don't need to use discovery, since
every peer has QSCC.
From: neeroz.kumar29@...
To: fabric@...
Date: 06/09/2021
12:15 AM
Subject: [EXTERNAL]
[Hyperledger Fabric] how to invoke the QSCC system chaincode? #fabric-sdk-go
Sent by: fabric@...
i am using the fabric-sdk-go v1.0.0 the below code snippet is throwing
the error: Discovery status Code: (11) UNKNOWN. Description: error received
from Discovery Server: failed constructing descriptor for chaincodes:<name:"qscc"
> ZjQcmQRYFpfptBannerStart
This Message Is From an External Sender
This message came from outside your organization.
ZjQcmQRYFpfptBannerEnd
i am using the fabric-sdk-go v1.0.0
the below code snippet is throwing the error: Discovery status Code: (11)
UNKNOWN. Description: error received from Discovery Server: failed constructing
descriptor for chaincodes:<name:"qscc" >
qsccContract := network.GetContract("qscc")
res, err := qsccContract.EvaluateTransaction("GetTransactionByID",
"xxxxxxxx")
if err != nil {
log.Fatalf("error:%v", err)
}
I am using fabric v2.2, and in the core.yaml file the system chaincodes
are enabled.