-
Notifications
You must be signed in to change notification settings - Fork 20
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
fix: add storage item for feature control #2382
fix: add storage item for feature control #2382
Conversation
Co-authored-by: felixfaisal <felixfaisal@users.noreply.github.com>
…hub.com:litentry/litentry-parachain into p-356-prefer-runtime-control-over-feature-guard
…hub.com:litentry/litentry-parachain into p-356-prefer-runtime-control-over-feature-guard
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
We have to update deploy.sh however I'm not sure if we have to Alice as root in production environment or we should manually call this extrinsic
In prod we have parachains already running, so we have to either rely on the default value of this storage, or set it manually (which is hard for automation)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good now! Only a small thing
…hub.com:litentry/litentry-parachain into p-356-prefer-runtime-control-over-feature-guard
What do you think about letting primary validateer (first worker to register in teerex's enclave registry) to set scheduled mrenclave to it's actual mrenclave in Would we still need |
We could do that but it will still require scheduled-enclave-check for subsequent registration. So it saves the step to set the first / genesis mrenclave from external |
You mean if code changes ... hmm maybe we can override it everytime. |
…hub.com:litentry/litentry-parachain into p-356-prefer-runtime-control-over-feature-guard
So I made a few changes
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, thanks! Just one small thing
Hmm there seems to be CI error |
This PR updates the code to make use of storage item instead of feature-guard for
skip-scheduled-enclave-check
So I initially thought that I would need to benchmark this new extrinsic, but I also see that not all extrinsics are benchmarked, and I'm using the same weights as one of the extrinsics, I think the operation of this extrinsic fairly simple as it performs a single write, So I also don't think we need to perform actually benchmarking as there is no worst case complexity.
So I've updated the unit tests to make use of the storage item instead of feature guards.
I'm actually not sure if this PR does all the necessary changes 😅
skip-ias-dev
but I want to do it another PR and not in thisdeploy.sh
however I'm not sure if we have toAlice
as root in production environment or we should manually call this extrinsic