Skip to content
This repository has been archived by the owner on May 21, 2024. It is now read-only.

Commit

Permalink
choir: re enable weights that became outdated on v1.5 bump
Browse files Browse the repository at this point in the history
  • Loading branch information
metricaez committed Feb 15, 2024
1 parent b837a38 commit 0417a82
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 12 deletions.
8 changes: 2 additions & 6 deletions runtime/trappist/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -396,9 +396,7 @@ impl pallet_collator_selection::Config for Runtime {
type ValidatorId = <Self as frame_system::Config>::AccountId;
type ValidatorIdOf = pallet_collator_selection::IdentityCollator;
type ValidatorRegistration = Session;
type WeightInfo = ();
// TODO: Recalculate on v1.5
// type WeightInfo = weights::pallet_collator_selection::WeightInfo<Runtime>;
type WeightInfo = weights::pallet_collator_selection::WeightInfo<Runtime>;
}

impl pallet_sudo::Config for Runtime {
Expand Down Expand Up @@ -482,9 +480,7 @@ impl pallet_identity::Config for Runtime {
type Slashed = ();
type ForceOrigin = EnsureRootOrHalfCouncil;
type RegistrarOrigin = EnsureRootOrHalfCouncil;
//TODO: Recalculate weights for v1.5
// type WeightInfo = weights::pallet_identity::WeightInfo<Runtime>;
type WeightInfo = ();
type WeightInfo = weights::pallet_identity::WeightInfo<Runtime>;
}

parameter_types! {
Expand Down
9 changes: 3 additions & 6 deletions runtime/trappist/src/weights/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,20 +22,17 @@ use xcm_primitives::DropAssetsWeigher;
use crate::Runtime;

pub mod block_weights;
//TODO: re enable when calculated for v1.5
// pub mod cumulus_pallet_xcmp_queue;
pub mod cumulus_pallet_xcmp_queue;
pub mod extrinsic_weights;
pub mod frame_system;
pub mod pallet_asset_registry;
pub mod pallet_assets;
pub mod pallet_balances;
// pub mod pallet_collator_selection;
pub mod pallet_collator_selection;
pub mod pallet_collective;
pub mod pallet_contracts;
pub mod pallet_democracy;
//TODO: re enable when calculated for v1.5

// pub mod pallet_identity;
pub mod pallet_identity;
pub mod pallet_multisig;
pub mod pallet_preimage;
pub mod pallet_safe_mode;
Expand Down
1 change: 1 addition & 0 deletions runtime/trappist/src/xcm_config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -431,6 +431,7 @@ impl cumulus_pallet_xcmp_queue::Config for Runtime {
EnsureXcm<IsMajorityOfBody<RelayLocation, ExecutiveBody>>,
>;
type ControllerOriginConverter = XcmOriginToTransactDispatchOrigin;
// TODO:
// type WeightInfo = weights::cumulus_pallet_xcmp_queue::WeightInfo<Runtime>;
type WeightInfo = ();
type PriceForSiblingDelivery = NoPriceForMessageDelivery<ParaId>;
Expand Down

0 comments on commit 0417a82

Please sign in to comment.