Skip to content

[stable2503] Backport #11028#11039

Merged
EgorPopelyaev merged 1 commit intostable2503from
backport-11028-to-stable2503
Feb 11, 2026
Merged

[stable2503] Backport #11028#11039
EgorPopelyaev merged 1 commit intostable2503from
backport-11028-to-stable2503

Conversation

@paritytech-release-backport-bot
Copy link
Copy Markdown

Backport #11028 into stable2503 from snowmead.

See the documentation on how to use this bot.

# Description

Add `DecodeWithMemTracking` derive to `CompactProof` in
`substrate/primitives/trie/src/storage_proof.rs`.

`StorageProof` already derived `DecodeWithMemTracking` but
`CompactProof` in the same file was missed.

## Integration

No integration changes required for downstream projects. `CompactProof`
now implements `DecodeWithMemTracking`, which is a strictly additive
trait implementation. Existing code using `CompactProof` will continue
to work as before.

## Review Notes

Single-line change adding `DecodeWithMemTracking` to the derive macro
list on `CompactProof`:

```diff
-#[derive(Debug, PartialEq, Eq, Clone, Encode, Decode, TypeInfo)]
+#[derive(Debug, PartialEq, Eq, Clone, Encode, Decode, DecodeWithMemTracking, TypeInfo)]
 pub struct CompactProof {
     pub encoded_nodes: Vec<Vec<u8>>,
 }
```

`CompactProof` only contains `Vec<Vec<u8>>`, which already implements
`DecodeWithMemTracking`, so the derive works without any manual
implementation.

---------

Co-authored-by: cmd[bot] <41898282+github-actions[bot]@users.noreply.github.com>
(cherry picked from commit fbddee8)
@github-actions github-actions Bot added the A3-backport Pull request is already reviewed well in another branch. label Feb 10, 2026
@github-actions
Copy link
Copy Markdown
Contributor

This pull request is amending an existing release. Please proceed with extreme caution,
as to not impact downstream teams that rely on the stability of it. Some things to consider:

  • Backports are only for 'patch' or 'minor' changes. No 'major' or other breaking change.
  • Should be a legit fix for some bug, not adding tons of new features.
  • Must either be already audited or not need an audit.
Emergency Bypass

If you really need to bypass this check: add validate: false to each crate
in the Prdoc where a breaking change is introduced. This will release a new major
version of that crate and all its reverse dependencies and basically break the release.

@EgorPopelyaev EgorPopelyaev added the R0-no-crate-publish-required The change does not require any crates to be re-published. label Feb 11, 2026
@EgorPopelyaev EgorPopelyaev enabled auto-merge (squash) February 11, 2026 14:33
@EgorPopelyaev EgorPopelyaev merged commit 067482e into stable2503 Feb 11, 2026
200 of 220 checks passed
@EgorPopelyaev EgorPopelyaev deleted the backport-11028-to-stable2503 branch February 11, 2026 14:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A3-backport Pull request is already reviewed well in another branch. R0-no-crate-publish-required The change does not require any crates to be re-published.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants