Input ( , , , ) Output ( , ) 1) for 2) if complete this round of consensus 3) 4) else if Malicious behavior 5) 6) else 7) if 8) ←error 9) recover in the next cycle 10) else if 11) ←abnormal 12) else if 13) ←normal 14) else 15) ←excellent 16) if 17) reset at next cycle 18) return ( , ) end for |