From 20f9b2c4211158e29590d54239f318ef02286245 Mon Sep 17 00:00:00 2001 From: Sergei Shulepov Date: Fri, 7 Jan 2022 20:25:53 +0100 Subject: [PATCH] paras: fix weight computation (#4673) Looks like it is an artifact of prior code and now it is redundant. --- polkadot/runtime/parachains/src/paras/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/polkadot/runtime/parachains/src/paras/mod.rs b/polkadot/runtime/parachains/src/paras/mod.rs index 3620768857..656b4a466c 100644 --- a/polkadot/runtime/parachains/src/paras/mod.rs +++ b/polkadot/runtime/parachains/src/paras/mod.rs @@ -1425,7 +1425,7 @@ impl Pallet { code_hash: &ValidationCodeHash, causes: Vec>, ) -> Weight { - let mut weight = T::DbWeight::get().writes(1); + let mut weight = 0; for cause in causes { // Whenever PVF pre-checking is started or a new cause is added to it, the RC is bumped.