0 votes
1 view
in Blockchain by (11.8k points)

I am studying and running samples from the Hyperledger Fabric samples .

According to my understanding:-

Endorsement policies define which peers need to agree on the results of a transaction before it can be added to the ledger.

We can define this policy in our client code during chaincode instantiation.

(Is endorsement applied during query proposal as well or only during transaction/invoke proposal ?)

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

My question is how to check using Fabric Java SDK, which peers are endorsing the transaction, the number of endorsers? i.e how to check if the endorsement is working properly.

Thanks.

1 Answer

0 votes
by (27.7k points)

Hi, what you are looking for is TransactionActionInfo class from the Java SDK has endorsers and endorsement count.

Welcome to Intellipaat Community. Get your technical queries answered by top developers !


Categories

...