Skip to content

Commit 7f03be3

Browse files
author
Ala Shaabana
committed
Added new subnet hyperparams to be set
1 parent fea61ad commit 7f03be3

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

pallets/subtensor/src/subnet_info.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ pub struct SubnetHyperparams {
4040
weights_version: Compact<u64>,
4141
weights_rate_limit: Compact<u64>,
4242
adjustment_interval: Compact<u16>,
43+
adjustment_alpha: Compact<u64>,
4344
activity_cutoff: Compact<u16>,
4445
registration_allowed: bool,
4546
target_regs_per_interval: Compact<u16>,
@@ -140,6 +141,7 @@ impl<T: Config> Pallet<T> {
140141
let weights_version = Self::get_weights_version_key(netuid);
141142
let weights_rate_limit = Self::get_weights_set_rate_limit(netuid);
142143
let adjustment_interval = Self::get_adjustment_interval(netuid);
144+
let adjustment_alpha = Self::get_adjustment_alpha(netuid);
143145
let activity_cutoff = Self::get_activity_cutoff(netuid);
144146
let registration_allowed = Self::get_network_registration_allowed(netuid);
145147
let target_regs_per_interval = Self::get_target_registrations_per_interval(netuid);
@@ -162,6 +164,7 @@ impl<T: Config> Pallet<T> {
162164
weights_version: weights_version.into(),
163165
weights_rate_limit: weights_rate_limit.into(),
164166
adjustment_interval: adjustment_interval.into(),
167+
adjustment_alpha: adjustment_alpha.into(),
165168
activity_cutoff: activity_cutoff.into(),
166169
registration_allowed,
167170
target_regs_per_interval: target_regs_per_interval.into(),

0 commit comments

Comments
 (0)