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
2022-01-07 20:25:53 +01:00
committed by GitHub
parent d752f8664a
commit 20f9b2c421
+1 -1
View File
@@ -1425,7 +1425,7 @@ impl<T: Config> Pallet<T> {
code_hash: &ValidationCodeHash, code_hash: &ValidationCodeHash,
causes: Vec<PvfCheckCause<T::BlockNumber>>, causes: Vec<PvfCheckCause<T::BlockNumber>>,
) -> Weight { ) -> Weight {
let mut weight = T::DbWeight::get().writes(1); let mut weight = 0;
for cause in causes { for cause in causes {
// Whenever PVF pre-checking is started or a new cause is added to it, the RC is bumped. // Whenever PVF pre-checking is started or a new cause is added to it, the RC is bumped.