mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-05-31 06:21:02 +00:00
update refs (#2041)
This commit is contained in:
committed by
Bastian Köcher
parent
b8f4086095
commit
bd583d6334
@@ -22,6 +22,7 @@ use sc_client_api::BlockBackend;
|
|||||||
use sc_consensus_aura::{CompatibilityMode, ImportQueueParams, SlotProportion, StartAuraParams};
|
use sc_consensus_aura::{CompatibilityMode, ImportQueueParams, SlotProportion, StartAuraParams};
|
||||||
use sc_consensus_grandpa::SharedVoterState;
|
use sc_consensus_grandpa::SharedVoterState;
|
||||||
pub use sc_executor::NativeElseWasmExecutor;
|
pub use sc_executor::NativeElseWasmExecutor;
|
||||||
|
use sc_executor::{HeapAllocStrategy, WasmExecutor, DEFAULT_HEAP_ALLOC_STRATEGY};
|
||||||
use sc_service::{error::Error as ServiceError, Configuration, TaskManager};
|
use sc_service::{error::Error as ServiceError, Configuration, TaskManager};
|
||||||
use sc_telemetry::{Telemetry, TelemetryWorker};
|
use sc_telemetry::{Telemetry, TelemetryWorker};
|
||||||
use sp_consensus_aura::sr25519::AuthorityPair as AuraPair;
|
use sp_consensus_aura::sr25519::AuthorityPair as AuraPair;
|
||||||
@@ -88,11 +89,17 @@ pub fn new_partial(
|
|||||||
})
|
})
|
||||||
.transpose()?;
|
.transpose()?;
|
||||||
|
|
||||||
let executor = NativeElseWasmExecutor::<ExecutorDispatch>::new(
|
let heap_pages = config
|
||||||
config.wasm_method,
|
.default_heap_pages
|
||||||
config.default_heap_pages,
|
.map_or(DEFAULT_HEAP_ALLOC_STRATEGY, |h| HeapAllocStrategy::Static { extra_pages: h as _ });
|
||||||
config.max_runtime_instances,
|
let executor = NativeElseWasmExecutor::<ExecutorDispatch>::new_with_wasm_executor(
|
||||||
config.runtime_cache_size,
|
WasmExecutor::builder()
|
||||||
|
.with_execution_method(config.wasm_method)
|
||||||
|
.with_onchain_heap_alloc_strategy(heap_pages)
|
||||||
|
.with_offchain_heap_alloc_strategy(heap_pages)
|
||||||
|
.with_max_runtime_instances(config.max_runtime_instances)
|
||||||
|
.with_runtime_cache_size(config.runtime_cache_size)
|
||||||
|
.build(),
|
||||||
);
|
);
|
||||||
|
|
||||||
let (client, backend, keystore_container, task_manager) =
|
let (client, backend, keystore_container, task_manager) =
|
||||||
|
|||||||
@@ -41,7 +41,10 @@ use cumulus_primitives_core::ParaId;
|
|||||||
use cumulus_relay_chain_interface::RelayChainInterface;
|
use cumulus_relay_chain_interface::RelayChainInterface;
|
||||||
use sc_consensus::ImportQueue;
|
use sc_consensus::ImportQueue;
|
||||||
// Substrate Imports
|
// Substrate Imports
|
||||||
use sc_executor::{NativeElseWasmExecutor, NativeExecutionDispatch};
|
use sc_executor::{
|
||||||
|
HeapAllocStrategy, NativeElseWasmExecutor, NativeExecutionDispatch, WasmExecutor,
|
||||||
|
DEFAULT_HEAP_ALLOC_STRATEGY,
|
||||||
|
};
|
||||||
use sc_network::NetworkBlock;
|
use sc_network::NetworkBlock;
|
||||||
use sc_network_sync::SyncingService;
|
use sc_network_sync::SyncingService;
|
||||||
use sc_service::{Configuration, PartialComponents, TFullBackend, TFullClient, TaskManager};
|
use sc_service::{Configuration, PartialComponents, TFullBackend, TFullClient, TaskManager};
|
||||||
@@ -131,11 +134,18 @@ where
|
|||||||
})
|
})
|
||||||
.transpose()?;
|
.transpose()?;
|
||||||
|
|
||||||
let executor = sc_executor::NativeElseWasmExecutor::<ParachainRuntimeExecutor>::new(
|
let heap_pages = config
|
||||||
config.wasm_method,
|
.default_heap_pages
|
||||||
config.default_heap_pages,
|
.map_or(DEFAULT_HEAP_ALLOC_STRATEGY, |h| HeapAllocStrategy::Static { extra_pages: h as _ });
|
||||||
config.max_runtime_instances,
|
let executor =
|
||||||
config.runtime_cache_size,
|
sc_executor::NativeElseWasmExecutor::<ParachainRuntimeExecutor>::new_with_wasm_executor(
|
||||||
|
WasmExecutor::builder()
|
||||||
|
.with_execution_method(config.wasm_method)
|
||||||
|
.with_onchain_heap_alloc_strategy(heap_pages)
|
||||||
|
.with_offchain_heap_alloc_strategy(heap_pages)
|
||||||
|
.with_max_runtime_instances(config.max_runtime_instances)
|
||||||
|
.with_runtime_cache_size(config.runtime_cache_size)
|
||||||
|
.build(),
|
||||||
);
|
);
|
||||||
|
|
||||||
let (client, backend, keystore_container, task_manager) =
|
let (client, backend, keystore_container, task_manager) =
|
||||||
|
|||||||
@@ -164,7 +164,7 @@ pub fn run() -> sc_cli::Result<()> {
|
|||||||
builder.with_colors(false);
|
builder.with_colors(false);
|
||||||
let _ = builder.init();
|
let _ = builder.init();
|
||||||
|
|
||||||
polkadot_node_core_pvf::prepare_worker_entrypoint(&cmd.socket_path);
|
polkadot_node_core_pvf::prepare_worker_entrypoint(&cmd.socket_path, None);
|
||||||
Ok(())
|
Ok(())
|
||||||
},
|
},
|
||||||
Some(crate::cli::Subcommand::PvfExecuteWorker(cmd)) => {
|
Some(crate::cli::Subcommand::PvfExecuteWorker(cmd)) => {
|
||||||
@@ -172,7 +172,7 @@ pub fn run() -> sc_cli::Result<()> {
|
|||||||
builder.with_colors(false);
|
builder.with_colors(false);
|
||||||
let _ = builder.init();
|
let _ = builder.init();
|
||||||
|
|
||||||
polkadot_node_core_pvf::execute_worker_entrypoint(&cmd.socket_path);
|
polkadot_node_core_pvf::execute_worker_entrypoint(&cmd.socket_path, None);
|
||||||
Ok(())
|
Ok(())
|
||||||
},
|
},
|
||||||
None => {
|
None => {
|
||||||
|
|||||||
@@ -94,7 +94,7 @@ pub struct ImportedCommitmentsInfoData<BlockNumber> {
|
|||||||
next_block_number_index: u32,
|
next_block_number_index: u32,
|
||||||
}
|
}
|
||||||
|
|
||||||
#[frame_support::pallet]
|
#[frame_support::pallet(dev_mode)]
|
||||||
pub mod pallet {
|
pub mod pallet {
|
||||||
use super::*;
|
use super::*;
|
||||||
use bp_runtime::{BasicOperatingMode, OwnedBridgeModule};
|
use bp_runtime::{BasicOperatingMode, OwnedBridgeModule};
|
||||||
|
|||||||
@@ -245,7 +245,7 @@ impl<RelayerId> InboundLaneData<RelayerId> {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/// Outbound message details, returned by runtime APIs.
|
/// Outbound message details, returned by runtime APIs.
|
||||||
#[derive(Clone, Encode, Decode, RuntimeDebug, PartialEq, Eq)]
|
#[derive(Clone, Encode, Decode, RuntimeDebug, PartialEq, Eq, TypeInfo)]
|
||||||
pub struct OutboundMessageDetails {
|
pub struct OutboundMessageDetails {
|
||||||
/// Nonce assigned to the message.
|
/// Nonce assigned to the message.
|
||||||
pub nonce: MessageNonce,
|
pub nonce: MessageNonce,
|
||||||
@@ -259,7 +259,7 @@ pub struct OutboundMessageDetails {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/// Inbound message details, returned by runtime APIs.
|
/// Inbound message details, returned by runtime APIs.
|
||||||
#[derive(Clone, Encode, Decode, RuntimeDebug, PartialEq, Eq)]
|
#[derive(Clone, Encode, Decode, RuntimeDebug, PartialEq, Eq, TypeInfo)]
|
||||||
pub struct InboundMessageDetails {
|
pub struct InboundMessageDetails {
|
||||||
/// Computed message dispatch weight.
|
/// Computed message dispatch weight.
|
||||||
///
|
///
|
||||||
|
|||||||
Reference in New Issue
Block a user