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

[encointer] introduce collator selection and send fees to authors instead of treasury #270

Conversation

brenzi
Copy link
Contributor

@brenzi brenzi commented Apr 10, 2024

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

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

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

@brenzi brenzi marked this pull request as ready for review April 10, 2024 18:04
@brenzi brenzi mentioned this pull request Apr 10, 2024
3 tasks
system-parachains/encointer/src/lib.rs Outdated Show resolved Hide resolved
system-parachains/encointer/src/lib.rs Show resolved Hide resolved
system-parachains/encointer/src/migrations_fix.rs Outdated Show resolved Hide resolved
system-parachains/encointer/src/migrations_fix.rs Outdated Show resolved Hide resolved
system-parachains/encointer/src/migrations_fix.rs Outdated Show resolved Hide resolved
@brenzi brenzi closed this Apr 18, 2024
@brenzi brenzi force-pushed the ab/introduce_collator-selection branch from db32586 to 31ba262 Compare April 18, 2024 13:38
@brenzi
Copy link
Contributor Author

brenzi commented Apr 18, 2024

darn. that was a mistake...

@brenzi brenzi reopened this Apr 18, 2024
@brenzi
Copy link
Contributor Author

brenzi commented May 1, 2024

I would claim your feedback up to this point has been addressed @joepetrowski. thanks a lot for your hints

Copy link
Contributor

@joepetrowski joepetrowski left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@brenzi
Copy link
Contributor Author

brenzi commented May 7, 2024

/merge

@fellowship-merge-bot fellowship-merge-bot bot enabled auto-merge (squash) May 7, 2024 11:41
@fellowship-merge-bot
Copy link
Contributor

Enabled auto-merge in Pull Request

Available commands
  • /merge: Enables auto-merge for Pull Request
  • /merge cancel: Cancels auto-merge for Pull Request
  • /merge help: Shows this menu

For more information see the documentation

@fellowship-merge-bot
Copy link
Contributor

Failed to update PR ❌

There was an error while trying to keep this PR up-to-date

You may have conflicts ‼️ or may have to manually sync it with the target branch 👉❇️

More info in the logs 📋

@fellowship-merge-bot
Copy link
Contributor

Failed to update PR ❌

There was an error while trying to keep this PR up-to-date

You may have conflicts ‼️ or may have to manually sync it with the target branch 👉❇️

More info in the logs 📋

auto-merge was automatically disabled May 8, 2024 11:56

Head branch was pushed to by a user without write access

CHANGELOG.md Outdated Show resolved Hide resolved
@acatangiu
Copy link
Contributor

/merge

@fellowship-merge-bot
Copy link
Contributor

Enabled auto-merge in Pull Request

Available commands
  • /merge: Enables auto-merge for Pull Request
  • /merge cancel: Cancels auto-merge for Pull Request
  • /merge help: Shows this menu

For more information see the documentation

@fellowship-merge-bot fellowship-merge-bot bot enabled auto-merge (squash) May 21, 2024 12:48
@fellowship-merge-bot fellowship-merge-bot bot merged commit 2fe6f56 into polkadot-fellows:main May 21, 2024
38 checks passed
@brenzi
Copy link
Contributor Author

brenzi commented May 22, 2024

happy to announce the migration worked smoothly on rococo and the session pallet works as expected:
image

notice the author's appearing after the upgrade

migration log

May 22 18:58:18 ero-collator-02 encointer-collator[3797498]: 2024-05-22 18:58:18.173  INFO tokio-runtime-worker runtime::frame-support: [Parachain] 🐥 New pallet "Authorship" detected in the runtime. The pallet has no defined storage version, so the on-chain version is being initialized to StorageVersio>
May 22 18:58:18 ero-collator-02 encointer-collator[3797498]: 2024-05-22 18:58:18.174  INFO tokio-runtime-worker runtime::frame-support: [Parachain] 🐥 New pallet "CollatorSelection" detected in the runtime. Initializing the on-chain storage version to match the storage version defined in the pallet: Sto>
May 22 18:58:18 ero-collator-02 encointer-collator[3797498]: 2024-05-22 18:58:18.174  INFO tokio-runtime-worker runtime::frame-support: [Parachain] 🐥 New pallet "Session" detected in the runtime. Initializing the on-chain storage version to match the storage version defined in the pallet: StorageVersio>
May 22 18:58:18 ero-collator-02 encointer-collator[3797498]: 2024-05-22 18:58:18.180  INFO tokio-runtime-worker frame_support::migrations: [Parachain] Removed 1 DmpQueue keys 🧹
May 22 18:58:18 ero-collator-02 encointer-collator[3797498]: 2024-05-22 18:58:18.180  INFO tokio-runtime-worker runtime::fix::collator_selection_init: [Parachain] initializing the set of invulnerables

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
6 participants