mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-07-20 20:55:41 +00:00
dyn overseer channel capacity (#5454)
* allow runtime adjustment of signal channel size Closes #5436
This commit is contained in:
committed by
GitHub
parent
2e1a3441f9
commit
abf882c591
@@ -719,6 +719,7 @@ pub fn new_full<RuntimeApi, ExecutorDispatch, OverseerGenerator>(
|
||||
program_path: Option<std::path::PathBuf>,
|
||||
overseer_enable_anyways: bool,
|
||||
overseer_gen: OverseerGenerator,
|
||||
overseer_message_channel_capacity_override: Option<usize>,
|
||||
hwbench: Option<sc_sysinfo::HwBench>,
|
||||
) -> Result<NewFull<Arc<FullClient<RuntimeApi, ExecutorDispatch>>>, Error>
|
||||
where
|
||||
@@ -1038,6 +1039,7 @@ where
|
||||
chain_selection_config,
|
||||
dispute_coordinator_config,
|
||||
pvf_checker_enabled,
|
||||
overseer_message_channel_capacity_override,
|
||||
},
|
||||
)
|
||||
.map_err(|e| {
|
||||
@@ -1326,6 +1328,7 @@ pub fn build_full(
|
||||
telemetry_worker_handle: Option<TelemetryWorkerHandle>,
|
||||
overseer_enable_anyways: bool,
|
||||
overseer_gen: impl OverseerGen,
|
||||
overseer_message_channel_override: Option<usize>,
|
||||
hwbench: Option<sc_sysinfo::HwBench>,
|
||||
) -> Result<NewFull<Client>, Error> {
|
||||
#[cfg(feature = "rococo-native")]
|
||||
@@ -1343,6 +1346,7 @@ pub fn build_full(
|
||||
None,
|
||||
overseer_enable_anyways,
|
||||
overseer_gen,
|
||||
overseer_message_channel_override,
|
||||
hwbench,
|
||||
)
|
||||
.map(|full| full.with_client(Client::Rococo))
|
||||
@@ -1360,6 +1364,7 @@ pub fn build_full(
|
||||
None,
|
||||
overseer_enable_anyways,
|
||||
overseer_gen,
|
||||
overseer_message_channel_override,
|
||||
hwbench,
|
||||
)
|
||||
.map(|full| full.with_client(Client::Kusama))
|
||||
@@ -1377,6 +1382,7 @@ pub fn build_full(
|
||||
None,
|
||||
overseer_enable_anyways,
|
||||
overseer_gen,
|
||||
overseer_message_channel_override,
|
||||
hwbench,
|
||||
)
|
||||
.map(|full| full.with_client(Client::Westend))
|
||||
@@ -1394,6 +1400,10 @@ pub fn build_full(
|
||||
None,
|
||||
overseer_enable_anyways,
|
||||
overseer_gen,
|
||||
overseer_message_channel_override.map(|capacity| {
|
||||
gum::warn!("Channel capacity should _never_ be tampered with on polkadot!");
|
||||
capacity
|
||||
}),
|
||||
hwbench,
|
||||
)
|
||||
.map(|full| full.with_client(Client::Polkadot))
|
||||
|
||||
Reference in New Issue
Block a user