Skip to content

Commit 23e1bf9

Browse files
committed
keep the old storage entry for compatibility
1 parent 2b53f39 commit 23e1bf9

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

pallets/subtensor/src/lib.rs

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1397,6 +1397,15 @@ pub mod pallet {
13971397
/// --- MAP ( netuid ) --> activity_cutoff
13981398
pub type ActivityCutoff<T> =
13991399
StorageMap<_, Identity, NetUid, u16, ValueQuery, DefaultActivityCutoff<T>>;
1400+
#[pallet::type_value]
1401+
/// Default maximum weights limit.
1402+
pub fn DefaultMaxWeightsLimit<T: Config>() -> u16 {
1403+
u16::MAX
1404+
}
1405+
#[pallet::storage]
1406+
/// --- MAP ( netuid ) --> max_weight_limit
1407+
pub type MaxWeightsLimit<T> =
1408+
StorageMap<_, Identity, NetUid, u16, ValueQuery, DefaultMaxWeightsLimit<T>>;
14001409
#[pallet::storage]
14011410
/// --- MAP ( netuid ) --> weights_version_key
14021411
pub type WeightsVersionKey<T> =

0 commit comments

Comments
 (0)