paras: fix weight computation (#4673)

Looks like it is an artifact of prior code and now it is redundant.
This commit is contained in:
Sergei Shulepov authored and GitHub committed 2022-01-07 13:25:53 -06:00
1 parent d752f8664a
commit 20f9b2c421
1 file changed
+1 -1
+1 -1
View File
@@ -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.