我正在研究和运行 Hyperledger Fabric 样本中的样本 .
根据我的理解: -
Endorsement policies define which peers need to agree on the results of a transaction before it can be added to the ledger.
我们可以在链代码实例化期间在客户端代码中定义此策略 .
(是否在查询提案期间或仅在交易/调用提案期间应用了认可?)
Currently i am running the Build your First Network n/w from the Fabric samples and using Fabric Java SDK. http://hyperledger-fabric.readthedocs.io/en/release-1.0/build_network.html
我的问题是如何使用Fabric Java SDK进行检查, which peers 正在支持该事务, number of endorsers ?即如何检查认可是否正常 .
谢谢 .
1 回答
找到了 !来自Java SDK的 TransactionActionInfo 类具有代言人和认可计数 .