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

Commit

Permalink
paras: fix weight computation (#4673)
Browse files Browse the repository at this point in the history
Looks like it is an artifact of prior code and now it is redundant.
  • Loading branch information
pepyakin authored Jan 7, 2022
1 parent 22e5c04 commit dea9561
Showing 1 changed file with 1 addition and 1 deletion.
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

0 comments on commit dea9561

Please sign in to comment.