mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-13 05:51:02 +00:00
PVF: Add Secure Validator Mode (#2486)
Co-authored-by: Javier Viola <javier@parity.io>
This commit is contained in:
@@ -88,6 +88,8 @@ pub struct Config {
|
||||
pub artifacts_cache_path: PathBuf,
|
||||
/// The version of the node. `None` can be passed to skip the version check (only for tests).
|
||||
pub node_version: Option<String>,
|
||||
/// Whether the node is attempting to run as a secure validator.
|
||||
pub secure_validator_mode: bool,
|
||||
/// Path to the preparation worker binary
|
||||
pub prep_worker_path: PathBuf,
|
||||
/// Path to the execution worker binary
|
||||
@@ -133,12 +135,19 @@ async fn run<Context>(
|
||||
mut ctx: Context,
|
||||
metrics: Metrics,
|
||||
pvf_metrics: polkadot_node_core_pvf::Metrics,
|
||||
Config { artifacts_cache_path, node_version, prep_worker_path, exec_worker_path }: Config,
|
||||
Config {
|
||||
artifacts_cache_path,
|
||||
node_version,
|
||||
secure_validator_mode,
|
||||
prep_worker_path,
|
||||
exec_worker_path,
|
||||
}: Config,
|
||||
) -> SubsystemResult<()> {
|
||||
let (validation_host, task) = polkadot_node_core_pvf::start(
|
||||
polkadot_node_core_pvf::Config::new(
|
||||
artifacts_cache_path,
|
||||
node_version,
|
||||
secure_validator_mode,
|
||||
prep_worker_path,
|
||||
exec_worker_path,
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user