Skip to content

Commit

Permalink
[INDY-1165] Try to decrease testing time (hyperledger#552)
Browse files Browse the repository at this point in the history
* [INDY-1165] Added check, that proofs already received

Signed-off-by: Andrew Nikitin <[email protected]>

* [INDY-1165] Remove retry timeout changing

Signed-off-by: Andrew Nikitin <[email protected]>
  • Loading branch information
anikitinDSR committed Apr 10, 2018
1 parent 7ac303a commit 1e23a7a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion plenum/common/ledger_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,11 +91,14 @@ def request_CPs_if_needed(self, ledgerId):
if ledgerInfo.consistencyProofsTimer is None:
return

proofs = ledgerInfo.recvdConsistencyProofs
# there is no any received ConsistencyProofs
if not proofs:
return
logger.debug("{} requesting consistency "
"proofs after timeout".format(self))

quorum = Quorums(self.owner.totalNodes)
proofs = ledgerInfo.recvdConsistencyProofs
groupedProofs, null_proofs_count = self._groupConsistencyProofs(proofs)
if quorum.same_consistency_proof.is_reached(null_proofs_count):
return
Expand Down

0 comments on commit 1e23a7a

Please sign in to comment.