Re: No way to query chain info from chaincode


Brett T Logan <brett.t.logan@...>
 

User chaincode cannot invoke QSCC, i.e., cross-chaincode invocation, as there is a danger of deadlock, and system chaincode was never meant to be queried in this way. You can still query it directly by invoking it from the SDK. If you were using a non-recent version of the Node SDK there was a regression for invoking System chaincode, but the latest versions have corrected this.

Brett Logan
IBM Blockchain


grapebaba --- [EXTERNAL] [Hyperledger Fabric] No way to query chain info from chaincode ---

From:"grapebaba" <281165273grape@...>
To:fabric@...
Date:Sun, Dec 6, 2020 23:06
Subject:[EXTERNAL] [Hyperledger Fabric] No way to query chain info from chaincode


Hi,
Seems from the 2.x version we cannot invoke qscc in chaincode(https://jira.hyperledger.org/browse/FAB-15285), does it make sense? Many other blockchains have ledger interfaces in smart contract API.

Join fabric@lists.hyperledger.org to automatically receive all group messages.