mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-14 05:11:09 +00:00
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:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user