Discard `Executor` (#1855)
closes #622
Pros:
* simpler interface, just functions:
`create_runtime_from_artifact_bytes()` and `execute_artifact()`
Cons:
* extra overhead of constructing executor semantics each time
I could make it a combination of
* `create_runtime_config(params)` (such that we could clone the
constructed semantics)
* `create_runtime(blob, config)`
* `execute_artifact(blob, config, params)`
Not sure if it's worth it though.
---------
Co-authored-by:
Bastian Köcher <git@kchr.de>
parent
7c87d61f
Showing
- polkadot/node/core/pvf/common/src/executor_intf.rs 54 additions, 66 deletionspolkadot/node/core/pvf/common/src/executor_intf.rs
- polkadot/node/core/pvf/execute-worker/src/lib.rs 9 additions, 9 deletionspolkadot/node/core/pvf/execute-worker/src/lib.rs
- polkadot/node/core/pvf/prepare-worker/src/lib.rs 8 additions, 8 deletionspolkadot/node/core/pvf/prepare-worker/src/lib.rs
- polkadot/node/core/pvf/src/testing.rs 4 additions, 4 deletionspolkadot/node/core/pvf/src/testing.rs
- substrate/frame/support/procedural/src/pallet/expand/warnings.rs 2 additions, 0 deletions...te/frame/support/procedural/src/pallet/expand/warnings.rs
Please register or sign in to comment