[FAB-10346] Ensure peers are in sync in eyfn

This change set adds querying to peers in all orgs at the end of eyfn
to ensure peers of all orgs are in sync.

Which proves they all validated the transaction and there is no state fork
among peers of different orgs.

Change-Id: I33ed632798a6e01d182e879c66c282fc4af6dbce
Signed-off-by: yacovm <yacovm@il.ibm.com>
This commit is contained in:
yacovm 2018-05-24 00:30:16 +03:00 committed by Yacov Manevich
parent a603655419
commit 3c32c524e5

View file

@ -51,10 +51,19 @@ chaincodeQuery 0 3 90
echo "Sending invoke transaction on peer0.org1 peer0.org2 peer0.org3..."
chaincodeInvoke 0 1 0 2 0 3
# Query on chaincode on peer0.org3, check if the result is 80
# Query on chaincode on peer0.org3, peer0.org2, peer0.org1 check if the result is 80
# We query a peer in each organization, to ensure peers from all organizations are in sync
# and there is no state fork between organizations.
echo "Querying chaincode on peer0.org3..."
chaincodeQuery 0 3 80
echo "Querying chaincode on peer0.org2..."
chaincodeQuery 0 2 80
echo "Querying chaincode on peer0.org1..."
chaincodeQuery 0 1 80
echo
echo "========= All GOOD, EYFN test execution completed =========== "
echo