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

Ability to execute both natively and in wasm #298

Closed
gavofyork opened this issue Jul 11, 2018 · 0 comments
Closed

Ability to execute both natively and in wasm #298

gavofyork opened this issue Jul 11, 2018 · 0 comments
Assignees
Labels
I2-security The client fails to follow expected, security-sensitive, behaviour.

Comments

@gavofyork
Copy link
Member

gavofyork commented Jul 11, 2018

This will require a new kind of Executor that executes both using the on-chain Wasm (WasmExecutor) and, when version allows as such, natively (using NativeExecutor).

Validator nodes should use both. Normal (heavy) nodes should default to native only when still syncing the chain, and then both when keeping in sync. A CLI option --use-native should allow strategy to be chosen (always (always use native, as long as version is good), never (never use native), syncing (as described here)).

Discrepancies between native and wasm should be loudly reported to the log and telemetry.

@gavofyork gavofyork added the I2-security The client fails to follow expected, security-sensitive, behaviour. label Jul 11, 2018
@gavofyork gavofyork added this to the PoC-2 (Co-finalisation) milestone Jul 11, 2018
@gavofyork gavofyork changed the title Ability to execute both natively and in dispatch Ability to execute both natively and in wasm Jul 12, 2018
@gavofyork gavofyork self-assigned this Jul 12, 2018
This was referenced Jul 12, 2018
lamafab pushed a commit to lamafab/substrate that referenced this issue Jun 16, 2020
JoshOrndorff added a commit to moonbeam-foundation/substrate that referenced this issue Apr 21, 2021
liuchengxu pushed a commit to chainx-org/substrate that referenced this issue Aug 23, 2021
liuchengxu pushed a commit to chainx-org/substrate that referenced this issue Aug 23, 2021
helin6 pushed a commit to boolnetwork/substrate that referenced this issue Jul 25, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
I2-security The client fails to follow expected, security-sensitive, behaviour.
Projects
None yet
Development

No branches or pull requests

1 participant