-
Notifications
You must be signed in to change notification settings - Fork 19
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
Expose the sgx-pallets constants on parachain #1569
Comments
An alternative is using PublicGetter in direct invocation But personally I think these constants are better to make public and more transparent, so I'm favoring option 1 at the moment |
I discussed this with @kziemianek and I logged down some results/thoughts. The issue is about the necessity of exposing the current sidechain constants (e.g. I try to make a table for comparison: making it a parachain constant/storage vs sidechain storage. I welcome thoughts/feedback from all sides. Even if we eventually decide not to expose the constant on parachain, it's not time wasted as it helps better understand the architecture and decision-making process.
In light of retrieving parachain storage, there're also two ways:
|
I'll add another let's call it hybrid way of syncing sidechain state which is a mix of via parachain block sync and live query. If we add constants to parachain pallet as |
Current decision is to move selected constants to parachain and sync them through live storage queries. Once we add metrics we will have more insights how this solution affects performance and stability. In case of any problems or doubts we will rethink design in the future. |
One last thing regarding this querying topic. I think it might query more than once per block the same storage_hash , so at least this kind optimization might be desirable. |
I created issue in |
❗ This issue is stale because it has been open for 60 days with no activity. |
Context
Some constants are hardcoded in sgx-runtime pallets, e.g.: https://github.com/litentry/litentry-parachain/blob/03f681ce63bbaff015a6d69bff8aa245b539f7cb/tee-worker/app-libs/sgx-runtime/src/lib.rs#L276
F/E can't query it.
It's better to make it more transparent by exposing it on parachain and allowing sidechain to read it.
Medium prio.
✔️ Please set appropriate labels and assignees if applicable.
The text was updated successfully, but these errors were encountered: