paritytech / smoldot

Alternative client for Substrate-based chains.
GNU General Public License v3.0
309 stars 74 forks source link

Support nested calls in virtual machine #189

Open tomaka opened 4 years ago

tomaka commented 4 years ago

In the Substrate sandboxing API, the runtime can call a function in a separate VM (the guest), and this guest can in return call functions in its supervisor. These "callbacks" happen while the invoke function (that invokes the guest) is still in progress.

In order to be able to implement this, the virtual machine API needs to support being able to call a function while an existing one is in an interrupted state.

tomaka commented 2 years ago

No longer needed after https://github.com/paritytech/substrate/pull/9592. We should remove all the corresponding host functions.

tomaka commented 2 years ago

After discussion, it is planned to reintroduce usage of these functions of Substrate, so let's not remove them.