Skip to content
This repository was archived by the owner on Nov 15, 2023. It is now read-only.

Xcm-Emulator: use ext_wrapper to execute with externalities - #2893

Merged
paritytech-processbot[bot] merged 1 commit into
masterfrom
muharem-xcm-emulator-fix-recur
Jul 19, 2023
Merged

paritytech-processbot[bot] merged 1 commit into
masterfrom
muharem-xcm-emulator-fix-recur

Conversation

@muharem

@muharem muharem commented Jul 18, 2023

Copy link
Copy Markdown
Contributor

The processing of an XCM message should not trigger the network to process all the XCM channels, which happens if execute with execute_with.
The ext_wrapper will wrap the execution only with test externalities.

@muharem muharem added B0-silent Changes should not be mentioned in any release notes A0-please_review Pull request needs code review. C1-low PR touches the given topic and has a low impact on builders. D3-trivial 🧸 PR contains trivial changes in a runtime directory that do not require an audit labels Jul 18, 2023
@muharem
muharem requested review from NachoPal and bkontur July 18, 2023 16:18

@bkontur bkontur left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

@NachoPal @muharem
can you guys, please, add some docs/description to the:

        fn execute_with<R>(execute: impl FnOnce() -> R) -> R;
	fn ext_wrapper<R>(func: impl FnOnce() -> R) -> R;

they have the same signature but would be good to know what is the difference

@muharem

muharem commented Jul 19, 2023

Copy link
Copy Markdown
Contributor Author

@bkontur there is a branch with that from @NachoPal, coming soon

@muharem

muharem commented Jul 19, 2023

Copy link
Copy Markdown
Contributor Author

bot merge

@paritytech-processbot
paritytech-processbot Bot merged commit 99d4b82 into master Jul 19, 2023
@paritytech-processbot
paritytech-processbot Bot deleted the muharem-xcm-emulator-fix-recur branch July 19, 2023 08:53
muharem added a commit that referenced this pull request Jul 19, 2023
girazoki pushed a commit to moondance-labs/cumulus that referenced this pull request Aug 18, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

A0-please_review Pull request needs code review. B0-silent Changes should not be mentioned in any release notes C1-low PR touches the given topic and has a low impact on builders. D3-trivial 🧸 PR contains trivial changes in a runtime directory that do not require an audit

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants