From 3c32c524e5688114bad3a62e04a9ade2e3085723 Mon Sep 17 00:00:00 2001 From: yacovm Date: Thu, 24 May 2018 00:30:16 +0300 Subject: [PATCH] [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 --- first-network/scripts/testorg3.sh | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/first-network/scripts/testorg3.sh b/first-network/scripts/testorg3.sh index 7133877501..6d1930cd06 100755 --- a/first-network/scripts/testorg3.sh +++ b/first-network/scripts/testorg3.sh @@ -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