From e14f3311840d1bfb7850eaca860d11d43f4472ea Mon Sep 17 00:00:00 2001
From: Branislav Kontur <bkontur@gmail.com>
Date: Mon, 17 Feb 2025 14:29:29 +0100
Subject: [PATCH] Fix Rococo/Westend

---
 .../weights/polkadot_runtime_parachains_paras.rs | 16 ++++++++++++++++
 .../weights/polkadot_runtime_parachains_paras.rs | 16 ++++++++++++++++
 2 files changed, 32 insertions(+)

diff --git a/polkadot/runtime/rococo/src/weights/polkadot_runtime_parachains_paras.rs b/polkadot/runtime/rococo/src/weights/polkadot_runtime_parachains_paras.rs
index c463552b6ad..30d7832a598 100644
--- a/polkadot/runtime/rococo/src/weights/polkadot_runtime_parachains_paras.rs
+++ b/polkadot/runtime/rococo/src/weights/polkadot_runtime_parachains_paras.rs
@@ -295,4 +295,20 @@ impl<T: frame_system::Config> polkadot_runtime_parachains::paras::WeightInfo for
 			.saturating_add(T::DbWeight::get().reads(3))
 			.saturating_add(T::DbWeight::get().writes(1))
 	}
+	fn authorize_force_set_current_code_hash() -> Weight {
+		// TODO: FAIL-CI fresh
+		Weight::from_parts(120_274_000, 0)
+			.saturating_add(Weight::from_parts(0, 30147))
+			.saturating_add(T::DbWeight::get().reads(3))
+			.saturating_add(T::DbWeight::get().writes(1))
+	}
+	fn apply_authorized_force_set_current_code(c: u32, ) -> Weight {
+		// TODO: FAIL-CI fresh
+		Weight::from_parts(33_700_000, 0)
+			.saturating_add(Weight::from_parts(0, 11774))
+			// Standard Error: 10
+			.saturating_add(Weight::from_parts(2_659, 0).saturating_mul(c.into()))
+			.saturating_add(T::DbWeight::get().reads(4))
+			.saturating_add(T::DbWeight::get().writes(6))
+	}
 }
diff --git a/polkadot/runtime/westend/src/weights/polkadot_runtime_parachains_paras.rs b/polkadot/runtime/westend/src/weights/polkadot_runtime_parachains_paras.rs
index d96964e69c1..d5c8c65ea1e 100644
--- a/polkadot/runtime/westend/src/weights/polkadot_runtime_parachains_paras.rs
+++ b/polkadot/runtime/westend/src/weights/polkadot_runtime_parachains_paras.rs
@@ -286,4 +286,20 @@ impl<T: frame_system::Config> polkadot_runtime_parachains::paras::WeightInfo for
 			.saturating_add(T::DbWeight::get().reads(3))
 			.saturating_add(T::DbWeight::get().writes(1))
 	}
+	fn authorize_force_set_current_code_hash() -> Weight {
+		// TODO: FAIL-CI fresh
+		Weight::from_parts(120_274_000, 0)
+			.saturating_add(Weight::from_parts(0, 30147))
+			.saturating_add(T::DbWeight::get().reads(3))
+			.saturating_add(T::DbWeight::get().writes(1))
+	}
+	fn apply_authorized_force_set_current_code(c: u32, ) -> Weight {
+		// TODO: FAIL-CI fresh
+		Weight::from_parts(33_700_000, 0)
+			.saturating_add(Weight::from_parts(0, 11774))
+			// Standard Error: 10
+			.saturating_add(Weight::from_parts(2_659, 0).saturating_mul(c.into()))
+			.saturating_add(T::DbWeight::get().reads(4))
+			.saturating_add(T::DbWeight::get().writes(6))
+	}
 }
-- 
GitLab