Skip to content

[stable2506] Backport #9127#9181

Merged
EgorPopelyaev merged 1 commit intostable2506from
backport-9127-to-stable2506
Jul 14, 2025
Merged

[stable2506] Backport #9127#9181
EgorPopelyaev merged 1 commit intostable2506from
backport-9127-to-stable2506

Conversation

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

Backport #9127 into stable2506 from alexggh.

See the documentation on how to use this bot.

…lidation context (#9127)

#8606
paritytech/trie#221 replaced the usage of
BTreeMap with HashMaps in validation context. The keys are already
derived with a cryptographic hash function from user data, so users
should not be able to manipulate it.

To be on safe side this PR also modifies the TrieCache, TrieRecorder and
MemoryDB to use a hasher that on top of the default generated randomness
also adds randomness generated from the hash of the relaychain and that
of the parachain blocks, which is not something users can control or
guess ahead of time.

---------

Signed-off-by: Alexandru Gheorghe <alexandru.gheorghe@parity.io>
Co-authored-by: Bastian Köcher <git@kchr.de>
Co-authored-by: cmd[bot] <41898282+github-actions[bot]@users.noreply.github.com>
(cherry picked from commit 7058819)
@paritytech-release-backport-bot paritytech-release-backport-bot bot requested a review from a team as a code owner July 11, 2025 16:21
@github-actions github-actions bot added the A3-backport Pull request is already reviewed well in another branch. label Jul 11, 2025
@github-actions github-actions bot requested a review from alexggh July 11, 2025 16:21
@alexggh alexggh removed the request for review from a team July 11, 2025 16:23
@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 enabled auto-merge (squash) July 14, 2025 08:10
@EgorPopelyaev EgorPopelyaev merged commit de111c2 into stable2506 Jul 14, 2025
263 of 268 checks passed
@EgorPopelyaev EgorPopelyaev deleted the backport-9127-to-stable2506 branch July 14, 2025 08:10
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.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants