-
Notifications
You must be signed in to change notification settings - Fork 406
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
Tier param setting call #1421
base: master
Are you sure you want to change the base?
Tier param setting call #1421
Conversation
TypeInfo, | ||
)] | ||
#[scale_info(skip_type_params(NT))] | ||
pub struct TierParametersV8<NT: Get<u32>> { |
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.
Suggestion - Move this type to the v8 module
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.
I've placed it here on purpose, to have everything related to v9 migration in one place.
That way we can already now remove the entire v8 migration sub module.
impl<T: Config, InitArgs: Get<(u64, u64)>> UncheckedOnRuntimeUpgrade | ||
for VersionMigrateV8ToV9<T, InitArgs> | ||
{ | ||
fn on_runtime_upgrade() -> Weight { |
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.
Question: Is maintenance mode needed here?
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.
Not needed since we do the migration in a single block.
And this won't have immediate effect (unless it's the very same block at which tier reconfig should be done).
@@ -411,15 +411,6 @@ impl DappStakingAccountCheck<AccountId> for AccountCheck { | |||
} | |||
} | |||
|
|||
pub struct ShidenTierSlots; | |||
impl TierSlotsFunc for ShidenTierSlots { |
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.
Nice cleanup!
Minimum allowed line rate is |
I will merge this after |
Pull Request Summary
Adds
set_static_tier_params
extrinsic to modify tier related dApp staking parameters dynamically.Requires
root
level privileges.Additionally expands the
TierParameters
struct to allow changing of the weight values of the linear equation used to determine number of slots.TODO
move
PR)