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

Simplify NativeExecutionDispatch and remove the native_executor_instance! macro #9562

Merged
3 commits merged into from
Aug 16, 2021

Conversation

expenses
Copy link
Contributor

@expenses expenses commented Aug 13, 2021

Polkadot companion: paritytech/polkadot#3643

Part of the sc-executor refactor. As the previous NativeExecutionDispatch::dispatch(ext, method, data) function was only used once, it was be inlined.

@expenses expenses added A0-please_review Pull request needs code review. B5-clientnoteworthy C1-low PR touches the given topic and has a low impact on builders. labels Aug 13, 2021
@expenses expenses changed the title Simplify NativeExecutionDispatch and remove the native_executor_instance! macro Simplify the NativeExecutionDispatch and remove the native_executor_instance! macro Aug 13, 2021
@expenses expenses changed the title Simplify the NativeExecutionDispatch and remove the native_executor_instance! macro Simplify NativeExecutionDispatch and remove the native_executor_instance! macro Aug 13, 2021
fn native_version() -> sc_executor::NativeVersion {
node_template_runtime::native_version()
}
}
Copy link
Contributor

Choose a reason for hiding this comment

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

This seems a lot less magic to me. 👍

Copy link
Contributor

@gilescope gilescope left a comment

Choose a reason for hiding this comment

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

LGTM. If we go ahead with this we should also update the examples - E.g.
https://github.com/substrate-developer-hub/recipes/blob/master/nodes/kitchen-node/src/service.rs

@expenses
Copy link
Contributor Author

bot merge

@ghost
Copy link

ghost commented Aug 16, 2021

Trying merge.

@ghost ghost merged commit 67f28cd into master Aug 16, 2021
@ghost ghost deleted the ashley-remove-executor-macro branch August 16, 2021 15:06
@expenses expenses moved this from In progress to Done in 🧬✨ – Client Improvements Aug 16, 2021
JoshOrndorff added a commit to moonbeam-foundation/frontier that referenced this pull request Aug 24, 2021
JoshOrndorff added a commit to moonbeam-foundation/frontier that referenced this pull request Sep 16, 2021
JoshOrndorff added a commit to moonbeam-foundation/frontier that referenced this pull request Sep 28, 2021
This pull request was closed.
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. C1-low PR touches the given topic and has a low impact on builders.
Projects
No open projects
Development

Successfully merging this pull request may close these issues.

None yet

3 participants