Skip to content
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.

Put relay chain slot number into ParachainInherent #422

Closed
bkchr opened this issue Apr 29, 2021 · 0 comments · Fixed by #494
Closed

Put relay chain slot number into ParachainInherent #422

bkchr opened this issue Apr 29, 2021 · 0 comments · Fixed by #494

Comments

@bkchr
Copy link
Member

bkchr commented Apr 29, 2021

The ParachainInherent already contains some data from the relay chain state that is mainly required for messaging. This will be moved to the runtime when we got paritytech/polkadot-sdk#82. However, as long as we don't have the functionality to read the relay chain state from the parachain runtime, we should add the relay chain slot number to the relay chain storage proof.

The relay chain slot number will be required to validate the timestamp inherent when validating the PoV on the relay chain. This should be done by using some Listener which will be called when the ValidationData is set and when the timestamp is set. If both are set we should verify that the timestamp is reasonable given the slot number.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
1 participant