Skip to content

Commit 23262e8

Browse files
ordianalvicsam
authored andcommitted
paras_inherent: fix overweight warn (#8861)
Fixes #8859 Long-term fix would be addressing #5520.
1 parent dbcc78d commit 23262e8

File tree

1 file changed

+6
-2
lines changed
  • polkadot/runtime/parachains/src/inclusion

1 file changed

+6
-2
lines changed

polkadot/runtime/parachains/src/inclusion/mod.rs

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -615,8 +615,12 @@ impl<T: Config> Pallet<T> {
615615
}
616616
});
617617
}
618-
619-
(weight, freed_cores)
618+
// For relay chain blocks, we're (ab)using the proof size
619+
// to limit the raw transaction size of `ParaInherent` and
620+
// there's no state proof (aka PoV) associated with it.
621+
// Since we already accounted for bitfields size, we should
622+
// not include `enact_candidate` PoV impact here.
623+
(weight.set_proof_size(0), freed_cores)
620624
}
621625

622626
/// Process candidates that have been backed. Provide a set of

0 commit comments

Comments
 (0)