Skip to content

Commit 575262e

Browse files
authored
Merge pull request #2317 from DanielDerefaka/fix/default-pending-childkey-cooldown
fix: DefaultPendingChildKeyCooldown should use prod_or_fast value
2 parents 6e3d24c + 83ed6d8 commit 575262e

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

pallets/subtensor/src/lib.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2359,10 +2359,11 @@ pub mod pallet {
23592359
#[pallet::storage]
23602360
pub type HasMigrationRun<T: Config> = StorageMap<_, Identity, Vec<u8>, bool, ValueQuery>;
23612361

2362-
/// Default value for pending childkey cooldown (settable by root, default 0)
2362+
/// Default value for pending childkey cooldown (settable by root).
2363+
/// Uses the same value as DefaultPendingCooldown for consistency.
23632364
#[pallet::type_value]
23642365
pub fn DefaultPendingChildKeyCooldown<T: Config>() -> u64 {
2365-
0
2366+
DefaultPendingCooldown::<T>::get()
23662367
}
23672368

23682369
/// Storage value for pending childkey cooldown, settable by root.

0 commit comments

Comments
 (0)