Skip to content

XCMP and DMP improvements#8860

Merged
serban300 merged 22 commits intoparitytech:masterfrom
serban300:message-passing-adjustments
Jul 1, 2025
Merged

XCMP and DMP improvements#8860
serban300 merged 22 commits intoparitytech:masterfrom
serban300:message-passing-adjustments

Conversation

@serban300
Copy link
Contributor

@serban300 serban300 commented Jun 16, 2025

Related to #489

This PR changes the parachain receiving logic for XCMP and DMP by adding some offchain processing before forwarding the messages to the parachain set_validation_data inherent. This enables us to relax the advancement rule.

@serban300 serban300 self-assigned this Jun 16, 2025
@serban300 serban300 added T9-cumulus This PR/Issue is related to cumulus. T18-zombienet_tests Trigger zombienet CI tests. labels Jun 16, 2025
@serban300 serban300 force-pushed the message-passing-adjustments branch 5 times, most recently from b65eafa to ae8fcc5 Compare June 16, 2025 11:23
@serban300 serban300 changed the title [WIP] XCMP and DMP improvements XCMP and DMP improvements Jun 16, 2025
@serban300 serban300 force-pushed the message-passing-adjustments branch from ae8fcc5 to c1811ae Compare June 16, 2025 16:15
Perform some offchain processing for the XCMP and DMP messages before
forwarding them to the parachain `set_validation_data` inherent.
@serban300 serban300 force-pushed the message-passing-adjustments branch from 3ee5165 to f797f1c Compare June 20, 2025 09:14
Copy link
Member

@bkchr bkchr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Generally looking good. Though, left comments on a lot of things :)

Copy link
Member

@bkchr bkchr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Generally looking good. There are still a lot of missing docs for public methods.

@acatangiu acatangiu requested a review from alindima June 25, 2025 15:06
serban300 added a commit to serban300/polkadot-sdk that referenced this pull request Jul 14, 2025
Related to paritytech#489

This PR changes the parachain receiving logic for XCMP and DMP by adding
some offchain processing before forwarding the messages to the parachain
`set_validation_data` inherent. This enables us to relax the advancement
rule.
@redzsina redzsina moved this from Scheduled to In progress in Security Audit (PRs) - SRLabs Jul 14, 2025
@serban300 serban300 added the A4-backport-stable2506 Pull request must be backported to the stable2506 release branch label Jul 14, 2025
paritytech-release-backport-bot bot pushed a commit that referenced this pull request Jul 14, 2025
Related to #489

This PR changes the parachain receiving logic for XCMP and DMP by adding
some offchain processing before forwarding the messages to the parachain
`set_validation_data` inherent. This enables us to relax the advancement
rule.

(cherry picked from commit a51c312)
@paritytech-release-backport-bot

Successfully created backport PR for stable2506:

serban300 added a commit that referenced this pull request Jul 14, 2025
Backport #8860 relay chain logic (runtime + client) into `stable2506` from serban300.

This PR backports the relay chain client and runtime changes related to
#8860.

This way we could start relaxing the advancement rule on the relay
chain, and in a future release we will introduce the new parachain
runtime logic.

---------

Co-authored-by: Serban Iorga <serban@parity.io>
Co-authored-by: Serban Iorga <serban300@gmail.com>
Co-authored-by: cmd[bot] <41898282+github-actions[bot]@users.noreply.github.com>
ordian added a commit that referenced this pull request Jul 24, 2025
* master: (91 commits)
  Add extra information to the harmless error logs during validate_transaction (#9047)
  `sp-tracing`: Remove `test-utils` feature (#9063)
  add try-state check for staking roles -- staker cannot be nominator a… (#9034)
  net/discovery: File persistence for `AddrCache` (#8839)
  dispute-coordinator: handle race with offchain disabling (#9050)
  Align parameters for `EventEmitter::emit_sent_event` (#9057)
  Fetch parent block `api_version` (#9059)
  [XCM Precompile] Rename functions and improve docs in the Solidity interface (#9023)
  Cleanup and improvements for `ControlledValidatorIndices` (#8896)
  reenable 0001-parachains-pvf (#9046)
  Add optional auto-rebag within on-idle (#8684)
  Fix flaxy 0003-block-building-warp-sync test - one more approach (#8974)
  [Staking] [AHM] Fixes insufficient slashing of nominators (and some other small issues). (#8937)
  chore: Bump bounded-collections dep (#9004)
  XCMP and DMP improvements (#8860)
  EPMB/unsigned: fixed multi-page winner computation (#8987)
  Always send full parent header, not only hash, part of collation response (#8939)
  revive: Precompiles should return dummy code when queried (#9001)
  Fix confusing log messages in network protocol behaviour (#8819)
  Fix pallet_migrations benchmark when FailedMigrationHandler emits events (#8694)
  ...
github-merge-queue bot pushed a commit that referenced this pull request Jul 28, 2025
Related to #8860

This PR adds a check in order to ensure that the collator has respected
the proper order when sending the HRMP messages to the runtime.

---------

Co-authored-by: cmd[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Andrii <ndk@parity.io>
paritytech-release-backport-bot bot pushed a commit that referenced this pull request Jul 28, 2025
Related to #8860

This PR adds a check in order to ensure that the collator has respected
the proper order when sending the HRMP messages to the runtime.

---------

Co-authored-by: cmd[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Andrii <ndk@parity.io>
(cherry picked from commit bd78cc5)
@redzsina redzsina moved this from In progress to Waiting for fix in Security Audit (PRs) - SRLabs Aug 4, 2025
alvicsam pushed a commit that referenced this pull request Oct 17, 2025
Related to #489

This PR changes the parachain receiving logic for XCMP and DMP by adding
some offchain processing before forwarding the messages to the parachain
`set_validation_data` inherent. This enables us to relax the advancement
rule.
alvicsam pushed a commit that referenced this pull request Oct 17, 2025
Improved PR doc for #8860

---------

Co-authored-by: cmd[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Adrian Catangiu <adrian@parity.io>
alvicsam pushed a commit that referenced this pull request Oct 17, 2025
Related to #8860

This PR adds a check in order to ensure that the collator has respected
the proper order when sending the HRMP messages to the runtime.

---------

Co-authored-by: cmd[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Andrii <ndk@parity.io>
github-merge-queue bot pushed a commit that referenced this pull request Jan 20, 2026
Related to: #9021
Followup for #8860

Looked some more into this and from what I understand the HRMP max
message size can't be changed dynamically. In order to change it we
would need to close the channel and than open it again which would lead
to clearing all the pending messages. So it's safe to use the current
hrmp max message size in the advancement rule check.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A4-backport-stable2506 Pull request must be backported to the stable2506 release branch T9-cumulus This PR/Issue is related to cumulus. T18-zombienet_tests Trigger zombienet CI tests.

Projects

Status: Waiting for fix
Status: Done

Development

Successfully merging this pull request may close these issues.

9 participants