A visualization of Convex's consensus algorithm.
To run
git clone https://github.com/jjttjj/cpos-viz
cd cpos-viz
clj -M -m cpos-viz
The gui has the following commands:
- reset (param:
n
): Reset the chain and start a new one withn
peers - share all: all peers merge their belief with all other peers
- random tx (
n
): createn
transactions, each from a random peer to a random different peer - gossip (
n
): each peer merges its beliefs withn
random other peers - step!: combines the two previous steps: sends transactions then gossips.
- Visualize and allow ajusting the actual stakes of each peer
- Allow seeding/saving/replaying of observed simulations