@@ -140,7 +140,7 @@ pub const fn contracts_deposit(items: u32, bytes: u32) -> Balance {
140
140
}
141
141
142
142
/// Change this to adjust the block time.
143
- pub const MILLISECS_PER_BLOCK : u64 = 12000 ;
143
+ pub const MILLISECS_PER_BLOCK : u64 = 6000 ;
144
144
pub const SLOT_DURATION : u64 = MILLISECS_PER_BLOCK ;
145
145
146
146
// Time is measured by number of blocks.
@@ -150,7 +150,7 @@ pub const DAYS: BlockNumber = HOURS * 24;
150
150
151
151
/// Maximum number of blocks simultaneously accepted by the Runtime, not yet included into the
152
152
/// relay chain.
153
- pub const UNINCLUDED_SEGMENT_CAPACITY : u32 = 1 ;
153
+ pub const UNINCLUDED_SEGMENT_CAPACITY : u32 = 3 ;
154
154
/// How many parachain blocks are processed by the relay chain per parent. Limits the number of
155
155
/// blocks authored per slot.
156
156
pub const BLOCK_PROCESSING_VELOCITY : u32 = 1 ;
@@ -205,9 +205,9 @@ const AVERAGE_ON_INITIALIZE_RATIO: Perbill = Perbill::from_percent(10);
205
205
/// We allow `Normal` extrinsics to fill up the block up to 75%, the rest can be used
206
206
/// by Operational extrinsics.
207
207
const NORMAL_DISPATCH_RATIO : Perbill = Perbill :: from_percent ( 75 ) ;
208
- /// We allow for 0.5 seconds of compute with a 6 second average block time.
208
+ /// We allow for 2 seconds of compute with a 6 second average block time.
209
209
const MAXIMUM_BLOCK_WEIGHT : Weight = Weight :: from_parts (
210
- WEIGHT_REF_TIME_PER_SECOND . saturating_div ( 2 ) ,
210
+ WEIGHT_REF_TIME_PER_SECOND . saturating_mul ( 2 ) ,
211
211
polkadot_primitives:: MAX_POV_SIZE as u64 ,
212
212
) ;
213
213
@@ -300,15 +300,10 @@ impl frame_system::Config for Runtime {
300
300
type PostTransactions = ( ) ;
301
301
}
302
302
303
- parameter_types ! {
304
- pub const MinimumPeriod : u64 = MILLISECS_PER_BLOCK / 2 ;
305
- }
306
-
307
303
impl pallet_timestamp:: Config for Runtime {
308
- /// A timestamp: milliseconds since the unix epoch.
309
304
type Moment = u64 ;
310
- type OnTimestampSet = ( ) ;
311
- type MinimumPeriod = MinimumPeriod ;
305
+ type OnTimestampSet = Aura ;
306
+ type MinimumPeriod = ConstU64 < 0 > ;
312
307
type WeightInfo = pallet_timestamp:: weights:: SubstrateWeight < Runtime > ;
313
308
}
314
309
@@ -538,7 +533,7 @@ impl pallet_aura::Config for Runtime {
538
533
type AuthorityId = AuraId ;
539
534
type DisabledValidators = ( ) ;
540
535
type MaxAuthorities = ConstU32 < 250 > ;
541
- type AllowMultipleBlocksPerSlot = ConstBool < false > ;
536
+ type AllowMultipleBlocksPerSlot = ConstBool < true > ;
542
537
type SlotDuration = ConstU64 < SLOT_DURATION > ;
543
538
}
544
539
@@ -907,8 +902,8 @@ parameter_types! {
907
902
/// max_gas_limit = max_tx_ref_time / WEIGHT_PER_GAS = max_pov_size * gas_limit_pov_size_ratio
908
903
/// gas_limit_pov_size_ratio = ceil((max_tx_ref_time / WEIGHT_PER_GAS) / max_pov_size)
909
904
///
910
- /// Equals 4 for values used by Shiden runtime.
911
- pub const GasLimitPovSizeRatio : u64 = 4 ;
905
+ /// Equals 16 for values used by Shiden runtime.
906
+ pub const GasLimitPovSizeRatio : u64 = 16 ;
912
907
}
913
908
914
909
impl pallet_evm:: Config for Runtime {
@@ -1106,7 +1101,7 @@ impl pallet_proxy::Config for Runtime {
1106
1101
parameter_types ! {
1107
1102
pub const NativeCurrencyId : CurrencyId = CurrencyId :: SDN ;
1108
1103
// Aggregate values for one day.
1109
- pub const AggregationDuration : BlockNumber = 7200 ;
1104
+ pub const AggregationDuration : BlockNumber = DAYS ;
1110
1105
}
1111
1106
1112
1107
impl pallet_price_aggregator:: Config for Runtime {
@@ -1199,7 +1194,13 @@ parameter_types! {
1199
1194
impl pallet_migrations:: Config for Runtime {
1200
1195
type RuntimeEvent = RuntimeEvent ;
1201
1196
#[ cfg( not( feature = "runtime-benchmarks" ) ) ]
1202
- type Migrations = ( ) ;
1197
+ type Migrations = (
1198
+ pallet_dapp_staking:: migration:: LazyMigration <
1199
+ Runtime ,
1200
+ pallet_dapp_staking:: weights:: SubstrateWeight < Runtime > ,
1201
+ > ,
1202
+ vesting_mbm:: LazyMigration < Runtime , vesting_mbm:: weights:: SubstrateWeight < Runtime > > ,
1203
+ ) ;
1203
1204
// Benchmarks need mocked migrations to guarantee that they succeed.
1204
1205
#[ cfg( feature = "runtime-benchmarks" ) ]
1205
1206
type Migrations = pallet_migrations:: mock_helpers:: MockedMigrations ;
@@ -1338,7 +1339,11 @@ parameter_types! {
1338
1339
pub type Migrations = ( Unreleased , Permanent ) ;
1339
1340
1340
1341
/// Unreleased migrations. Add new ones here:
1341
- pub type Unreleased = ( cumulus_pallet_xcmp_queue:: migration:: v5:: MigrateV4ToV5 < Runtime > , ) ;
1342
+ pub type Unreleased = (
1343
+ cumulus_pallet_xcmp_queue:: migration:: v5:: MigrateV4ToV5 < Runtime > ,
1344
+ pallet_dapp_staking:: migration:: AdjustEraMigration < Runtime > ,
1345
+ pallet_inflation:: migration:: AdjustBlockRewardMigration < Runtime > ,
1346
+ ) ;
1342
1347
1343
1348
/// Migrations/checks that do not need to be versioned and can run on every upgrade.
1344
1349
pub type Permanent = ( pallet_xcm:: migration:: MigrateToLatestXcmVersion < Runtime > , ) ;
0 commit comments