JoinColony / colonyNetwork

Colony Network smart contracts
https://colony.io/
GNU General Public License v3.0
437 stars 106 forks source link

Add support for migrating mining chains #1200

Open kronosapiens opened 7 months ago

kronosapiens commented 7 months ago

As we contemplate moving the mining process from Gnosis chain to another chain, the question has come up of whether it is worth planning for potential future mining migrations. Ultimately it is hard to predict which chain will be the best home for reputation mining in the long run, and so adding support for possible migrations seems wise.

This issue will summarize the open and closed questions related to this functionality.

OVERVIEW:

The process for migrating reputation mining to a new chain will likely look something like this:

  1. A block number is chosen on the current mining chain to be the block after which no new reputation mining cycles will be created. This block can be chosen arbitrarily far in advance.
  2. Any reputation mining currently going before this block can continue to resolution (for example, an extended dispute).
  3. Once the final reputation state is determined, it is sent out to all other chains as the final action. This message may be followed up with a separate message terminating mining on that chain, or a flag, or something else.
  4. After this, mining will begin on the new chain. For all intents and purposes, mining remains identical, except that the address of the mining chain is updated on all networks. The new mining chain should be configured with bridge information for the non-mining chains.

DETAILS:

OPEN QUESTIONS: