Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adjustments for v170 #2

Merged
merged 2 commits into from
Feb 16, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 6 additions & 5 deletions runtime/bajun/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,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 = 6_000;
pub const MILLISECS_PER_BLOCK: u64 = 12_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.
Expand Down Expand Up @@ -251,9 +251,9 @@ const AVERAGE_ON_INITIALIZE_RATIO: Perbill = Perbill::from_percent(5);
/// `Operational` extrinsics.
const NORMAL_DISPATCH_RATIO: Perbill = Perbill::from_percent(75);

/// We allow for 2 of a second of compute with a 6 second average block time.
/// We allow for 500ms of a second of compute with a 12-second average block time.
const MAXIMUM_BLOCK_WEIGHT: Weight = Weight::from_parts(
WEIGHT_REF_TIME_PER_SECOND.saturating_mul(2),
WEIGHT_REF_TIME_PER_SECOND.saturating_div(2),
cumulus_primitives_core::relay_chain::MAX_POV_SIZE as u64,
);

Expand Down Expand Up @@ -619,7 +619,7 @@ impl pallet_aura::Config for Runtime {
type AuthorityId = AuraId;
type DisabledValidators = ();
type MaxAuthorities = MaxAuthorities;
type AllowMultipleBlocksPerSlot = ConstBool<true>;
type AllowMultipleBlocksPerSlot = ConstBool<false>;
#[cfg(feature = "experimental")]
type SlotDuration = ConstU64<SLOT_DURATION>;
}
Expand Down Expand Up @@ -896,7 +896,8 @@ construct_runtime!(
XcmpQueue: cumulus_pallet_xcmp_queue = 30,
PolkadotXcm: pallet_xcm = 31,
CumulusXcm: cumulus_pallet_xcm = 32,
MessageQueue: pallet_message_queue = 33,
// DmpQueue: cumulus_pallet_dmp_queue = 33,
MessageQueue: pallet_message_queue = 34,

// Governance
Sudo: pallet_sudo = 40,
Expand Down
4 changes: 2 additions & 2 deletions runtime/bajun/src/proxy_type.rs
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,8 @@ impl InstanceFilter<RuntimeCall> for ProxyType {
RuntimeCall::Council(..) |
RuntimeCall::CouncilMembership(..) |
RuntimeCall::Treasury(..) |
//RuntimeCall::Vesting(orml_vesting::Call::claim{..}) |
//RuntimeCall::Vesting(orml_vesting::Call::claim_for{..}) |
RuntimeCall::Vesting(orml_vesting::Call::claim{..}) |
RuntimeCall::Vesting(orml_vesting::Call::claim_for{..}) |
// Specifically omitting Vesting `vested_transfer`, and `update_vesting_schedules`
RuntimeCall::Utility(..) |
RuntimeCall::Identity(..) |
Expand Down