Export unified ParachainHostFunctions (#3854)

This PR exports unified hostfunctions needed for parachains. Basicaly
`SubstrateHostFunctions` + `storage_proof_size::HostFunctions`.

Also removes the native executor from the parachain template.

---------

Co-authored-by: Michal Kucharczyk <1728078+michalkucharczyk@users.noreply.github.com>
This commit is contained in:
Sebastian Kunert
2024-03-28 14:10:56 +01:00
committed by GitHub
parent 987f1c24b6
commit 2e4e657112
6 changed files with 33 additions and 30 deletions
+9
View File
@@ -54,6 +54,15 @@ use std::{sync::Arc, time::Duration};
pub use cumulus_primitives_proof_size_hostfunction::storage_proof_size;
/// Host functions that should be used in parachain nodes.
///
/// Contains the standard substrate host functions, as well as a
/// host function to enable PoV-reclaim on parachain nodes.
pub type ParachainHostFunctions = (
cumulus_primitives_proof_size_hostfunction::storage_proof_size::HostFunctions,
sp_io::SubstrateHostFunctions,
);
// Given the sporadic nature of the explicit recovery operation and the
// possibility to retry infinite times this value is more than enough.
// In practice here we expect no more than one queued messages.