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

Remove sandboxing host function interface #12852

Merged
merged 2 commits into from
Dec 7, 2022

Conversation

athei
Copy link
Member

@athei athei commented Dec 6, 2022

In #12501 we removed the dependence of pallet-contracts on the sandboxing interface. This was its only user and it was never used in production (the interface was never available on validators). pallet-contracts now uses in-runtime wasmi exclusively. In the future when we want to speed up execution we will do that with another interface and probably a more suitable bytecode for singlepass compilation.

This PR also removes the sandboxing functionality and wasmer dependency of sc-executor. It is a prerequisite for a larger refactoring of that crate that should make it much simpler. Sandboxing and execution of runtime should not be conflated in this way.

This removes a host function that was never available on validators and is not used by any project I know of. I add the newhostfunction label just in case, though.

@athei athei 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 Dec 6, 2022
@athei athei requested a review from bkchr December 6, 2022 16:44
@athei athei requested review from koute, pepyakin and a team as code owners December 6, 2022 16:44
@athei athei added the D3-trivial 🧸 PR contains trivial changes in a runtime directory that do not require an audit label Dec 6, 2022
Copy link
Contributor

@koute koute left a comment

Choose a reason for hiding this comment

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

Nice! This will make my life a lot easier in my executor refactoring.

Copy link
Member

@bkchr bkchr left a comment

Choose a reason for hiding this comment

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

Nice clean up!

@paritytech-ci paritytech-ci requested a review from a team December 7, 2022 12:43
@athei
Copy link
Member Author

athei commented Dec 7, 2022

bot merge

@paritytech-processbot paritytech-processbot bot merged commit 5722ece into master Dec 7, 2022
@paritytech-processbot paritytech-processbot bot deleted the at/remove-sandbox branch December 7, 2022 12:48
ukint-vs added a commit to gear-tech/substrate that referenced this pull request Dec 20, 2022
ukint-vs added a commit to gear-tech/substrate that referenced this pull request Dec 22, 2022
ukint-vs added a commit to gear-tech/substrate that referenced this pull request Feb 13, 2023
ukint-vs added a commit to gear-tech/substrate that referenced this pull request Feb 13, 2023
ltfschoen pushed a commit to ltfschoen/substrate that referenced this pull request Feb 22, 2023
* Remove sandboxing interface

* Remove unused struct
ark0f pushed a commit to gear-tech/substrate that referenced this pull request Feb 27, 2023
* Remove sandboxing interface

* Remove unused struct
ukint-vs added a commit to gear-tech/substrate that referenced this pull request Apr 13, 2023
breathx pushed a commit to gear-tech/substrate that referenced this pull request Apr 22, 2023
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. D3-trivial 🧸 PR contains trivial changes in a runtime directory that do not require an audit
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

5 participants