Skip to content

Conversation

@DanielDerefaka
Copy link

Summary

DefaultPendingChildKeyCooldown was returning 0 instead of using the same value as DefaultPendingCooldown. This causes PendingChildKeyCooldown to be 0 on fresh chains (like localnet) instead of the expected 7200 (prod) or 15 (fast/test).

Changes

  • Changed DefaultPendingChildKeyCooldown to call DefaultPendingCooldown::<T>::get() for consistency

Before

pub fn DefaultPendingChildKeyCooldown<T: Config>() -> u64 {
    0
}

After

pub fn DefaultPendingChildKeyCooldown<T: Config>() -> u64 {
    DefaultPendingCooldown::<T>::get()
}

Fixes #2107

DefaultPendingChildKeyCooldown was returning 0 instead of using the
same value as DefaultPendingCooldown. This causes PendingChildKeyCooldown
to be 0 on fresh chains (like localnet) instead of the expected 7200/15.

Changed to call DefaultPendingCooldown::<T>::get() for consistency.

Fixes opentensor#2107
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

DefaultPendingChildKeyCooldown should use prod_or_fast!(7_200, 15) instead of 0

1 participant