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.
This commit is contained in:
Sergei Shulepov
2021-12-28 15:04:11 +01:00
committed by GitHub
parent 3c226d9dcf
commit a17162afa8
+1 -1
View File
@@ -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<T>,
stmt: PvfCheckStatement,