Skip to content

Commit 22aefdd

Browse files
authored
Merge pull request #1455 from opentensor/feat/fast-blocks-start-call-duration
shorten start call duration for fast blocks
2 parents 1047a72 + 6a2be68 commit 22aefdd

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

runtime/src/lib.rs

+6-2
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ pub const VERSION: RuntimeVersion = RuntimeVersion {
207207
// `spec_version`, and `authoring_version` are the same between Wasm and native.
208208
// This value is set to 100 to notify Polkadot-JS App (https://polkadot.js.org/apps) to use
209209
// the compatible custom types.
210-
spec_version: 254,
210+
spec_version: 255,
211211
impl_version: 1,
212212
apis: RUNTIME_API_VERSIONS,
213213
transaction_version: 1,
@@ -1044,7 +1044,11 @@ parameter_types! {
10441044
pub const InitialDissolveNetworkScheduleDuration: BlockNumber = 5 * 24 * 60 * 60 / 12; // 5 days
10451045
pub const SubtensorInitialTaoWeight: u64 = 971_718_665_099_567_868; // 0.05267697438728329% tao weight.
10461046
pub const InitialEmaPriceHalvingPeriod: u64 = 201_600_u64; // 4 weeks
1047-
pub const DurationOfStartCall: u64 = 7 * 24 * 60 * 60 / 12; // 7 days
1047+
pub const DurationOfStartCall: u64 = if cfg!(feature = "fast-blocks") {
1048+
10 // Only 10 blocks for fast blocks
1049+
} else {
1050+
7 * 24 * 60 * 60 / 12 // 7 days
1051+
};
10481052
}
10491053

10501054
impl pallet_subtensor::Config for Runtime {

0 commit comments

Comments
 (0)