diff --git a/Cargo.lock b/Cargo.lock index ebea969..acc412c 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -650,7 +650,7 @@ dependencies = [ [[package]] name = "bajun-node" -version = "0.5.0" +version = "0.6.0" dependencies = [ "async-trait", "bajun-runtime", @@ -727,7 +727,7 @@ dependencies = [ [[package]] name = "bajun-runtime" -version = "0.5.0" +version = "0.6.0" dependencies = [ "assets-common", "cumulus-pallet-aura-ext", diff --git a/Cargo.toml b/Cargo.toml index 595b908..bca9d9b 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -3,7 +3,7 @@ authors = [ "Ajuna Network " ] edition = "2021" homepage = "https://ajuna.io" repository = "https://github.com/ajuna-network/Ajuna" -version = "0.5.0" +version = "0.6.0" [workspace] resolver = "2" diff --git a/runtime/bajun/src/lib.rs b/runtime/bajun/src/lib.rs index b8d1b50..7a0d0d1 100644 --- a/runtime/bajun/src/lib.rs +++ b/runtime/bajun/src/lib.rs @@ -232,7 +232,7 @@ pub const VERSION: RuntimeVersion = RuntimeVersion { /// up by `pallet_aura` to implement `fn slot_duration()`. /// /// Change this to adjust the block time. -pub const MILLISECS_PER_BLOCK: u64 = 12_000; +pub const MILLISECS_PER_BLOCK: u64 = 6_000; // NOTE: Currently it is not possible to change the slot duration after the chain has started. // Attempting to do so will brick block production. @@ -261,15 +261,15 @@ const AVERAGE_ON_INITIALIZE_RATIO: Perbill = Perbill::from_percent(5); /// `Operational` extrinsics. const NORMAL_DISPATCH_RATIO: Perbill = Perbill::from_percent(75); -/// We allow for 500ms of a second of compute with a 12-second average block time. +/// We allow for 2s of a second of compute with a 6-second average block time. const MAXIMUM_BLOCK_WEIGHT: Weight = Weight::from_parts( - WEIGHT_REF_TIME_PER_SECOND.saturating_div(2), + WEIGHT_REF_TIME_PER_SECOND.saturating_mul(2), cumulus_primitives_core::relay_chain::MAX_POV_SIZE as u64, ); /// Maximum number of blocks simultaneously accepted by the Runtime, not yet included into the /// relay chain. -pub const UNINCLUDED_SEGMENT_CAPACITY: u32 = 1; +pub const UNINCLUDED_SEGMENT_CAPACITY: u32 = 3; /// How many parachain blocks are processed by the relay chain per parent. Limits the number of /// blocks authored per slot. pub const BLOCK_PROCESSING_VELOCITY: u32 = 1; @@ -642,7 +642,7 @@ impl pallet_aura::Config for Runtime { type AuthorityId = AuraId; type MaxAuthorities = MaxAuthorities; type DisabledValidators = (); - type AllowMultipleBlocksPerSlot = ConstBool; + type AllowMultipleBlocksPerSlot = ConstBool; type SlotDuration = ConstU64; }