-
Notifications
You must be signed in to change notification settings - Fork 740
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Clear other messages before dry-run to get only the ones produced dur…
…ing (#5581) The dry-run shows in `forwarded_xcms` all the messages in the queues at the time of calling the API. Each time the API is called, the result could be different. You could get messages even if you dry-run something that doesn't send a message, like a `System::remark`. This PR fixes this by clearing the message queues before doing the dry-run, so the only messages left are the ones the users of the API actually care about. --------- Co-authored-by: Adrian Catangiu <[email protected]> (cherry picked from commit 8d9ebcd)
- Loading branch information
1 parent
d6f482d
commit 7dd97e4
Showing
10 changed files
with
78 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
# Schema: Polkadot SDK PRDoc Schema (prdoc) v1.0.0 | ||
# See doc at https://raw.githubusercontent.com/paritytech/polkadot-sdk/master/prdoc/schema_user.json | ||
|
||
title: Clear other messages before dry-running | ||
|
||
doc: | ||
- audience: Runtime Dev | ||
description: | | ||
The DryRunApi.dry_run_call and DryRunApi.dry_run_xcm functions used to populate | ||
`forwarded_xcms` with all the existing messages in the queues at the time. | ||
Now, existing (irrelevant) messages are cleared when dry-running, meaning only the | ||
messages produced by the dry-run call (or xcm) will be returned in `forwarded_xcms`. | ||
|
||
crates: | ||
- name: pallet-xcm | ||
bump: minor | ||
- name: staging-xcm-builder | ||
bump: major | ||
- name: pallet-xcm-bridge-hub-router | ||
bump: minor | ||
- name: cumulus-pallet-parachain-system | ||
bump: minor | ||
- name: cumulus-pallet-xcmp-queue | ||
bump: minor | ||
- name: cumulus-primitives-utility | ||
bump: minor | ||
- name: polkadot-runtime-common | ||
bump: minor | ||
- name: pallet-xcm-bridge-hub | ||
bump: minor |