diff --git a/node/src/service.rs b/node/src/service.rs index 6b47a30..0d4ee05 100644 --- a/node/src/service.rs +++ b/node/src/service.rs @@ -570,7 +570,7 @@ pub fn new_full_base( force_authoring, backoff_authoring_blocks, babe_link, - block_proposal_slot_portion: SlotProportion::new(0.5), + block_proposal_slot_portion: SlotProportion::new(0.25), // changeed from 0.5, slower production rate, max_block_proposal_slot_portion: None, telemetry: telemetry.as_ref().map(|x| x.handle()), }; @@ -681,8 +681,8 @@ pub fn new_full_base( let grandpa_config = grandpa::Config { // FIXME #1578 make this available through chainspec - gossip_duration: std::time::Duration::from_millis(333), - justification_period: 512, + gossip_duration: Duration::from_millis(1000), // Changed from 333 + justification_period: 256, name: Some(name), observer_enabled: false, keystore, diff --git a/runtime/gpu/constants/src/lib.rs b/runtime/gpu/constants/src/lib.rs index 021ffb5..6c947d1 100644 --- a/runtime/gpu/constants/src/lib.rs +++ b/runtime/gpu/constants/src/lib.rs @@ -42,9 +42,9 @@ pub mod currency { pub mod time { use primitives::{BlockNumber, Moment}; use runtime_common::prod_or_fast; - pub const MILLISECS_PER_BLOCK: Moment = 6000; + pub const MILLISECS_PER_BLOCK: Moment = 12000;// Increase to 12 seconds; pub const SLOT_DURATION: Moment = MILLISECS_PER_BLOCK; - pub const EPOCH_DURATION_IN_SLOTS: BlockNumber = prod_or_fast!(4 * HOURS, 1 * MINUTES); //shubhchange + pub const EPOCH_DURATION_IN_SLOTS: BlockNumber = prod_or_fast!(2 * HOURS, 1 * MINUTES); //shubhchange // These time units are defined in number of blocks. pub const MINUTES: BlockNumber = 60_000 / (MILLISECS_PER_BLOCK as BlockNumber); diff --git a/runtime/gpu/src/lib.rs b/runtime/gpu/src/lib.rs index 283dc0e..af16702 100644 --- a/runtime/gpu/src/lib.rs +++ b/runtime/gpu/src/lib.rs @@ -553,8 +553,8 @@ impl OnUnbalanced> for SudoAccount { } parameter_types! { - // Six sessions in an era (24 hours). - pub const SessionsPerEra: SessionIndex = prod_or_fast!(6, 1);//shubhchange + // Six sessions in an era (24 hours). Changed to 4 + pub const SessionsPerEra: SessionIndex = prod_or_fast!(4, 1);//shubhchange // 28 eras for unbonding (28 days). pub const BondingDuration: sp_staking::EraIndex = 28; @@ -748,6 +748,8 @@ impl pallet_grandpa::Config for Runtime { type MaxAuthorities = MaxAuthorities; type MaxSetIdSessionEntries = MaxSetIdSessionEntries; + + type KeyOwnerProof = >::Proof; type EquivocationReportSystem =