def chkSusp(): for r in nonPrimaryReps: # Every node with non primary replicas of instance 0 should raise # suspicion twice, once for each extra PRE-PREPARE request assert len(getNodeSuspicions(r.node, Suspicions.DUPLICATE_PPR_SENT.code)) == 2 # Each non primary replica should just send one PREPARE assert len(sentPrepare(r)) == 1
def chkSusp(): for r in nonPrimaryReps: # Every node with non primary replicas of instance 0 should raise # suspicion assert len(getNodeSuspicions(r.node, Suspicions.PPR_DIGEST_WRONG.code)) == 1 # No non primary replica should send any PREPARE assert len(sentPrepare(r)) == 0