Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replace native execution. #521

Open
wants to merge 6 commits into
base: main
Choose a base branch
from
Open

Replace native execution. #521

wants to merge 6 commits into from

Conversation

gianfra-t
Copy link
Contributor

Fixes issue 518.

Context

Since the metadata-hash chain extension cannot be used with the native runtime execution, and it's use seems to be deprecated as well, we replace the use of NativeElseWasmExecutor and use WasmExecutor directly.

@gianfra-t gianfra-t requested a review from a team February 28, 2025 16:28
Copy link
Member

@ebma ebma left a comment

Choose a reason for hiding this comment

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

So you managed to sync the chain on Foucoco with this change? 🥹 Great find 🙏

@@ -188,16 +151,14 @@ where
.default_heap_pages
.map_or(DEFAULT_HEAP_ALLOC_STRATEGY, |h| HeapAllocStrategy::Static { extra_pages: h as _ });

let wasm = WasmExecutor::builder()
let executor = ParachainExecutor::builder()
.with_execution_method(config.wasm_method)
Copy link
Member

Choose a reason for hiding this comment

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

Isn't the execution_method field deprecated anyway? Or is it just the CLI field? I remember seeing warnings when starting the node.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Ah, good call. We can remove this and get rid of the warning.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I checked this method and it seems that it is not for selecting Native/wasm, but rather how to instantiate the wasm. I think we should keep it.

But you're right that there is a warning for the --execution flag, which now makes even less sense to have. I'll try to find a way to remove it.

Copy link
Member

Choose a reason for hiding this comment

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

Okay understood.

@@ -188,16 +151,14 @@ where
.default_heap_pages
.map_or(DEFAULT_HEAP_ALLOC_STRATEGY, |h| HeapAllocStrategy::Static { extra_pages: h as _ });

let wasm = WasmExecutor::builder()
let executor = ParachainExecutor::builder()
.with_execution_method(config.wasm_method)
Copy link
Member

Choose a reason for hiding this comment

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

Okay understood.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants