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

Executor: Create runtime from artifact in-memory rather than on-disk? #13861

Description

@mrcnski

ISSUE

Overview

Currently on the Polkadot side we call create_runtime_from_artifact, which takes a path to a pre-compiled artifact. However, this runs in its own thread which we want to sandbox for security, and it would be nice if we could disable all file-system access. For that reason I'd like to be able to read the artifact ahead of time, and have a way to pass in the bytes directly to runtime instantiation.

(This would also help with #13860, since we could handle file-not-found on the Polkadot side without relying on un-matchable String errors from Substrate.)

Metadata

Metadata

Assignees

Labels

I7-refactorCode needs refactoring.

Type

No type
No fields configured for issues without a type.

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions