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

paras: fix weight computation #4673

Merged
merged 1 commit into from
Jan 7, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
paras: fix weight computation
Looks like it is an artifact of prior code and now it is redundant.
  • Loading branch information
pepyakin committed Jan 7, 2022
commit 567d9e5a260ae8d47bb78a2dc73b6134703cb250
2 changes: 1 addition & 1 deletion runtime/parachains/src/paras/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1425,7 +1425,7 @@ impl<T: Config> Pallet<T> {
code_hash: &ValidationCodeHash,
causes: Vec<PvfCheckCause<T::BlockNumber>>,
) -> Weight {
let mut weight = T::DbWeight::get().writes(1);
let mut weight = 0;

for cause in causes {
// Whenever PVF pre-checking is started or a new cause is added to it, the RC is bumped.
Expand Down