mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-27 15:07:59 +00:00
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:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user