Skip to content

Commit 3c32c52

Browse files
committedMay 23, 2018
[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>
1 parent a603655 commit 3c32c52

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed
 

‎first-network/scripts/testorg3.sh

+10-1
Original file line numberDiff line numberDiff line change
@@ -51,10 +51,19 @@ chaincodeQuery 0 3 90
5151
echo "Sending invoke transaction on peer0.org1 peer0.org2 peer0.org3..."
5252
chaincodeInvoke 0 1 0 2 0 3
5353

54-
# Query on chaincode on peer0.org3, check if the result is 80
54+
# Query on chaincode on peer0.org3, peer0.org2, peer0.org1 check if the result is 80
55+
# We query a peer in each organization, to ensure peers from all organizations are in sync
56+
# and there is no state fork between organizations.
5557
echo "Querying chaincode on peer0.org3..."
5658
chaincodeQuery 0 3 80
5759

60+
echo "Querying chaincode on peer0.org2..."
61+
chaincodeQuery 0 2 80
62+
63+
echo "Querying chaincode on peer0.org1..."
64+
chaincodeQuery 0 1 80
65+
66+
5867
echo
5968
echo "========= All GOOD, EYFN test execution completed =========== "
6069
echo

0 commit comments

Comments
 (0)