argonprotocol / mainchain

The Argon is an inflation-proof stablecoin powered by Bitcoin
https://argonprotocol.org
MIT No Attribution
4 stars 1 forks source link

Refactor consensus parts #167

Closed blakebyrnes closed 2 weeks ago

blakebyrnes commented 2 weeks ago

This PR was done in preparation for becoming a parachain, but that part may now be on hold. Here are some of the changes we implemented:

  1. Digests are processed in a central place in the runtime
  2. Fork power is calculated and stored in the runtime
  3. The full block is now signed by block votes to prevent tampering by other nodes
  4. The consensus block creation process for votes and compute was merged into a single loop
  5. Proof of compute now waits until 2/3 of a tick are gone before beginning to create blocks to optimally capture the notebooks.
  6. The minimum vote was lowered to 1 milligon. (it still adjust to try to get 50k votes per block).
  7. Support multiple mining authorities on a single machine (no longer 1 author per instance)
  8. Pin the versions of polkadot in use