在Hyperledger分类帐中,如何列出特定链码的认可对等方?我有一个包含5个对等方的渠道,但我只需要其中3个对一笔交易进行认可,而其他两个仅需要访问同一分类帐即可。
您可以使用发现服务来获得认可对等方。在这里您可以找到一些信息:https://hyperledger-fabric.readthedocs.io/en/latest/discovery-overview.html
Hyperledger结构具有一个CLI工具来查询发现服务:https://hyperledger-fabric.readthedocs.io/en/latest/discovery-cli.html
对于node.js应用程序,您可以在此处遵循该教程:https://hyperledger.github.io/fabric-sdk-node/release-1.4/tutorial-discovery.html