Skip to content

Commit 6c300a0

Browse files
committed
fix subnet info
1 parent b836401 commit 6c300a0

File tree

1 file changed

+4
-9
lines changed

1 file changed

+4
-9
lines changed

pallets/subtensor/src/subnet_info.rs

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,6 @@ pub struct SubnetInfo<T: Config> {
2424
emission_values: Compact<u64>,
2525
burn: Compact<u64>,
2626
owner: T::AccountId,
27-
alpha_low: Compact<u16>,
28-
alpha_high: Compact<u16>,
2927
}
3028

3129
#[derive(Decode, Encode, PartialEq, Eq, Clone, Debug)]
@@ -54,9 +52,9 @@ pub struct SubnetHyperparams {
5452
difficulty: Compact<u64>,
5553
commit_reveal_weights_interval: Compact<u64>,
5654
commit_reveal_weights_enabled: bool,
57-
liquid_alpha_enabled: bool,
58-
alpha_low: Compact<u16>,
5955
alpha_high: Compact<u16>,
56+
alpha_low: Compact<u16>,
57+
liquid_alpha_enabled: bool,
6058
}
6159

6260
impl<T: Config> Pallet<T> {
@@ -80,7 +78,6 @@ impl<T: Config> Pallet<T> {
8078
let network_modality = <NetworkModality<T>>::get(netuid);
8179
let emission_values = Self::get_emission_value(netuid);
8280
let burn: Compact<u64> = Self::get_burn_as_u64(netuid).into();
83-
let (alpha_low, alpha_high): (u16, u16) = Self::get_alpha_values(netuid);
8481

8582
// DEPRECATED
8683
let network_connect: Vec<[u16; 2]> = Vec::<[u16; 2]>::new();
@@ -107,8 +104,6 @@ impl<T: Config> Pallet<T> {
107104
emission_values: emission_values.into(),
108105
burn,
109106
owner: Self::get_subnet_owner(netuid),
110-
alpha_low: alpha_low.into(),
111-
alpha_high: alpha_high.into(),
112107
})
113108
}
114109

@@ -191,9 +186,9 @@ impl<T: Config> Pallet<T> {
191186
difficulty: difficulty.into(),
192187
commit_reveal_weights_interval: commit_reveal_weights_interval.into(),
193188
commit_reveal_weights_enabled,
194-
liquid_alpha_enabled,
195-
alpha_low: alpha_low.into(),
196189
alpha_high: alpha_high.into(),
190+
alpha_low: alpha_low.into(),
191+
liquid_alpha_enabled,
197192
})
198193
}
199194
}

0 commit comments

Comments
 (0)