Intellipaat Back

Explore Courses Blog Tutorials Interview Questions
0 votes
2 views
in Blockchain by (12.7k 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 (29.5k points)

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

31k questions

32.8k answers

501 comments

693 users

Browse Categories

...