Skip to content

Commit c21c1d6

Browse files
committed
use smaller DefaultPendingCooldown for fast-blocks
1 parent b5477fa commit c21c1d6

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

pallets/subtensor/src/lib.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -728,6 +728,10 @@ pub mod pallet {
728728
#[pallet::type_value]
729729
/// Default value for applying pending items (e.g. childkeys).
730730
pub fn DefaultPendingCooldown<T: Config>() -> u64 {
731+
if cfg!(feature = "fast-blocks") {
732+
return 15;
733+
}
734+
731735
7_200
732736
}
733737

0 commit comments

Comments
 (0)