mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-19 18:11:03 +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
|
/// 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.
|
/// 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(
|
pub fn include_pvf_check_statement(
|
||||||
origin: OriginFor<T>,
|
origin: OriginFor<T>,
|
||||||
stmt: PvfCheckStatement,
|
stmt: PvfCheckStatement,
|
||||||
|
|||||||
Reference in New Issue
Block a user