filecoin-project / consensus

Filecoin consensus work
Other
42 stars 5 forks source link

added headstart simulation #57

Closed sa8 closed 5 years ago

sa8 commented 5 years ago

Very basic simulation to test how much advantage an adversary can win by getting a "headstart" from the honest chain. So when the adversary is elected leader at the same time as the honest players, they will start the attack by referencing the honest blocks and their own but mining privately. The binomial vector corresponds to the leader election. We toss a coin for each player controlled by the adversary or the honest participants to see how many players each chain gets.