Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

implement collator-selection for Encointer #183

Closed
brenzi opened this issue Feb 14, 2024 · 0 comments · Fixed by #270
Closed

implement collator-selection for Encointer #183

brenzi opened this issue Feb 14, 2024 · 0 comments · Fixed by #270

Comments

@brenzi
Copy link
Contributor

brenzi commented Feb 14, 2024

Encointer still operates with hard-coded collator keys which is very rigid and hinders decentralization of infrastructure.
This should finally be changed and aligned with other system parachains

There may be synergy when implementing this before #176

draft strategy:

  1. instantiate the necessary pallets for release 1.3.0 but don't change collation logic yet (as the pallet is initialized with zero invulnerables)
  2. resolve remove treasury from Encointer runtime #176 and replace Treasury with ToAuthor as fee beneficiary
  3. deploy runtime upgrade 1.3.0
  4. establish invulnerables = existing hard-coded keys
  5. activate collator-selection, deprecate hard-coded collator keys

Questions:

  • we may be able to use state migration to initialize the set of invulnerables and do all this in a single upgrade. Check how Asset Hub did it
fellowship-merge-bot bot pushed a commit that referenced this issue May 21, 2024
…tead of treasury (#270)

closes #183 
closes #176
closes #146 (should be closed already, but this PR adds more)

This PR aligns collator selection and fee distribution logic of
Encointer with other system chains and thereby is a small step towards
[self-sustainability of
infrastructure](https://forum.polkadot.network/t/towards-encointer-self-sustainability/4195)

* [x] remove treasury (and leave negligible funds on trsry account)
* [x] add collator-selection, session and authorship pallets
* [x] instead of burning fees in community currency , send them to block
authors like native KSM
* [x] remove DMP queue pallet (pure cleanup, no change in functionality)
* [x] add migration to inject existing collators as invulnerables
* [x] remove applied migrations from release 1.2.0

steps to reproduce the new fee logic:
https://gist.github.com/brenzi/ca9e0c326198c73ff2dd0a2e74468053

---------

Co-authored-by: joe petrowski <[email protected]>
@brenzi brenzi closed this as completed Jul 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant