> python ./simulations/majority_attack.py
setting up ...
... add 1000 users ...
... user1 has 51% rep ...
STEP 1. user1 adds contribution and votes for it
--user ------------------------------
| user1 | user2 | .....
REP | 0.5122 | 0.0001 | ...
TOK | 12 | 1 | ...
----------------------------
STEP 2. user1 adds contribution and votes for it
--------------------------------
| user1 | user2 | .....
REP | 0.5134 | 0.0001 | ...
TOK | 11.56 | 1 | ...
----------------------------
STEP, DESCRIPTION, user1.rep, user1.tokens, user2.rep, user2.tokens, ...
1,user1 add contrib and votes for 1, 0.5122, 12, 0.0001,1
2,user1 add contrib and votes for 1, 0.5134, 11.56, 0.0001,1
We want to to experiments like:
The idea is to have a library/class that
example session
example csv output
example scenario definitoin
[to be done]