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

Use Relay Chain Blocks for Temporal Dependencies #156

Open
joepetrowski opened this issue Jan 23, 2024 · 3 comments
Open

Use Relay Chain Blocks for Temporal Dependencies #156

joepetrowski opened this issue Jan 23, 2024 · 3 comments

Comments

@joepetrowski
Copy link
Contributor

Periodic schedules (like promotion periods in the Fellowship) depend on numbers of blocks as their "clock", which are meant to correspond to some time periods like days, weeks, months, etc.

With both async backing and shared coretime coming, using the parachain block number will be unreliable.

We should switch all system parachains to use the Relay Chain block number for its HOURS, DAYS, etc. constants and migrate any existing state with values linked to the parachain block number.

@joepetrowski
Copy link
Contributor Author

Linking to paritytech/polkadot-sdk#3268

@ggwpez
Copy link
Member

ggwpez commented Feb 9, 2024

For calculating time the relay block number will also not work, since there can be multiple para blocks per relay block 🙃
(responded to the other issue as well)

@xlc
Copy link
Contributor

xlc commented Feb 10, 2024

can we just use timestamp?

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

No branches or pull requests

3 participants