Question: 3 . ( 2 5 points ) Modify the code so that each byzantine general ( except the commander ) sabotages the consensus of honest

3.(25 points) Modify the code so that each byzantine general (except the commander) sabotages the consensus of honest generals by relaying two conflicting messages whenever it receives a verified message. Then, test your code by running it three times for no_of_generals =7, and byzantine_prob =.5. Record and report the result. Does the given algorithm fail to provide consensus?

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!