From e3684db978ee187c0c4129c89670b349e4267163 Mon Sep 17 00:00:00 2001 From: ordian Date: Mon, 16 Jun 2025 15:28:13 +0200 Subject: [PATCH 1/3] paras_inherent: fix overweight warn (#8861) Fixes #8859 Long-term fix would be addressing #5520. (cherry picked from commit da75e7db67ee4a08f3821ef552dc0ca47975cf66) --- polkadot/runtime/parachains/src/inclusion/mod.rs | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) 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 From b283960ef71126c900bf4ce0c14005207edbab6c Mon Sep 17 00:00:00 2001 From: ordian Date: Thu, 26 Jun 2025 17:18:23 +0200 Subject: [PATCH 2/3] prdoc --- prdoc/pr_8851.prdoc | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 prdoc/pr_8851.prdoc diff --git a/prdoc/pr_8851.prdoc b/prdoc/pr_8851.prdoc new file mode 100644 index 0000000000000..7abd9660fdd7c --- /dev/null +++ b/prdoc/pr_8851.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 From b8bc705d48fdd3031d57b97ad86249636036c4af Mon Sep 17 00:00:00 2001 From: ordian Date: Thu, 26 Jun 2025 17:19:58 +0200 Subject: [PATCH 3/3] rename file --- prdoc/{pr_8851.prdoc => pr_8861.prdoc} | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename prdoc/{pr_8851.prdoc => pr_8861.prdoc} (100%) diff --git a/prdoc/pr_8851.prdoc b/prdoc/pr_8861.prdoc similarity index 100% rename from prdoc/pr_8851.prdoc rename to prdoc/pr_8861.prdoc