Skip to content

Commit

Permalink
[FAB-10346] Ensure peers are in sync in eyfn
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
yacovm committed May 23, 2018
1 parent a603655 commit 3c32c52
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion first-network/scripts/testorg3.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 3c32c52

Please sign in to comment.