diff --git a/polkadot/runtime/parachains/src/inclusion/mod.rs b/polkadot/runtime/parachains/src/inclusion/mod.rs index 001394d1c9588..6bca327984d80 100644 --- a/polkadot/runtime/parachains/src/inclusion/mod.rs +++ b/polkadot/runtime/parachains/src/inclusion/mod.rs @@ -615,8 +615,12 @@ impl Pallet { } }); } - - (weight, freed_cores) + // For relay chain blocks, we're (ab)using the proof size + // to limit the raw transaction size of `ParaInherent` and + // there's no state proof (aka PoV) associated with it. + // Since we already accounted for bitfields size, we should + // not include `enact_candidate` PoV impact here. + (weight.set_proof_size(0), freed_cores) } /// Process candidates that have been backed. Provide a set of diff --git a/prdoc/pr_8861.prdoc b/prdoc/pr_8861.prdoc new file mode 100644 index 0000000000000..7abd9660fdd7c --- /dev/null +++ b/prdoc/pr_8861.prdoc @@ -0,0 +1,10 @@ +title: "paras_inherent: fix overweight warn" + +doc: + - audience: Runtime Dev + description: | + This fixes an incorrect warning in the relay chain runtime + +crates: +- name: polkadot-runtime-parachains + bump: patch