From a17162afa8fa600433b98b0300a4475e16591138 Mon Sep 17 00:00:00 2001 From: Sergei Shulepov Date: Tue, 28 Dec 2021 15:04:11 +0100 Subject: [PATCH] paras: fix placeholder weight (#4625) Setting zero as weight may be a source of problems. The problem is, a rogue validator can shove a lot of duplicated votes and thus fill a block with work that may well exceed the weight limit. --- polkadot/runtime/parachains/src/paras.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/polkadot/runtime/parachains/src/paras.rs b/polkadot/runtime/parachains/src/paras.rs index 8fdef24ec2..93c080af21 100644 --- a/polkadot/runtime/parachains/src/paras.rs +++ b/polkadot/runtime/parachains/src/paras.rs @@ -765,7 +765,7 @@ pub mod pallet { /// Includes a statement for a PVF pre-checking vote. Potentially, finalizes the vote and /// enacts the results if that was the last vote before achieving the supermajority. - #[pallet::weight(0)] + #[pallet::weight(Weight::MAX)] pub fn include_pvf_check_statement( origin: OriginFor, stmt: PvfCheckStatement,