Skip to content
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.

Commit

Permalink
review feedback #1
Browse files Browse the repository at this point in the history
Signed-off-by: Andrei Sandu <andrei-mihail@parity.io>
  • Loading branch information
sandreim committed Mar 22, 2023
1 parent 882e7d3 commit a5ba764
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions runtime/parachains/src/paras_inherent/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -341,7 +341,7 @@ impl<T: Config> Pallet<T> {

let max_block_weight = <T as frame_system::Config>::BlockWeights::get().max_block;

// At most 60% of total block space will be dispute votes.
// At most `MAX_DISPUTES_WEIGHT_PERCENT` of total block space will be dispute votes.
let mut max_disputes_weight = Weight::from_parts(
MAX_DISPUTES_WEIGHT_PERCENT.mul_floor(max_block_weight.ref_time()),
max_block_weight.proof_size(),
Expand All @@ -354,7 +354,7 @@ impl<T: Config> Pallet<T> {
.saturating_sub(max_block_weight);

// Constrain max dispute weight to ensure block will not be overweight.
max_disputes_weight -= spill;
max_disputes_weight = max_disputes_weight.saturating_sub(spill);

METRICS
.on_before_filter((candidates_weight + bitfields_weight + disputes_weight).ref_time());
Expand Down

0 comments on commit a5ba764

Please sign in to comment.