-
Notifications
You must be signed in to change notification settings - Fork 128
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
Refactor/predicates include exclude #315
Conversation
f8b1984
to
5125ccb
Compare
5125ccb
to
19717ce
Compare
@ccamel The migration wasn't working since paramspace is immediately initialized with the new params key table at the keeper instantiation before the migration run. Even with a legacy param subspace, we cannot change the registered key table (with the old one) at the migration step. So it impossible to get the old ParamsSet before migration to update it. Otherwise the FYI @amimart. |
@bdeneux This is excellent! Thanks for the improvement. |
aaa49f5
to
f44d280
Compare
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.
Excellent! Everything seems fine 😉
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.
Here my test to check if everything work 😜 :
- query logic
params
(through CLI) - query logic
ask
(CLI) - migration from old
x/param
to module state and new renamed params - update new params through a
"@type": "/logic.v1beta2.MsgUpdateParams"
governance proposal
All good 👍 thank :)
All right! Thanks so much guys. ❤️ |
🎉 This PR is included in version 5.0.0 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
Purpose
Implements #313. With this implementation, one can specifies a
predicates_blacklist
of predicates to exclude from the set of registered predicates that theInterpreter
can use. In addition, theregistered_predicates
parameter is renamed topredicates_whitelist
for consistency.Implementation details
<predicate_name>/[<arity>]
strings. If a predicate name without arity is included in this list, then all predicates with that name will be considered regardless of arity.Consideration
proto
. The code that performs the migrationv2
tov3
is included in the PR.Todo