mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-19 03:01:02 +00:00
Test deployments fixes (#2057)
* Fix node_impl_version error ``` error: unexpected argument '--node-impl-version' found tip: to pass '--node-impl-version' as a value, use '-- --node-impl-version' Usage: rialto-bridge-node prepare-worker <SOCKET_PATH> <NODE_IMPL_VERSION> For more information, try '--help'. ``` * Fix rialto-parachain not producing blocks We must have at least 2 validators for each collator
This commit is contained in:
committed by
Bastian Köcher
parent
13ecaf1eca
commit
25220c2ca4
@@ -68,15 +68,15 @@ pub enum Subcommand {
|
|||||||
Inspect(node_inspect::cli::InspectCmd),
|
Inspect(node_inspect::cli::InspectCmd),
|
||||||
|
|
||||||
/// Benchmark runtime pallets.
|
/// Benchmark runtime pallets.
|
||||||
#[clap(subcommand)]
|
#[command(subcommand)]
|
||||||
Benchmark(frame_benchmarking_cli::BenchmarkCmd),
|
Benchmark(frame_benchmarking_cli::BenchmarkCmd),
|
||||||
|
|
||||||
/// FOR INTERNAL USE: analog of the "prepare-worker" command of the polkadot binary.
|
/// FOR INTERNAL USE: analog of the "prepare-worker" command of the polkadot binary.
|
||||||
#[clap(name = "prepare-worker", hide = true)]
|
#[command(name = "prepare-worker", hide = true)]
|
||||||
PvfPrepareWorker(ValidationWorkerCommand),
|
PvfPrepareWorker(ValidationWorkerCommand),
|
||||||
|
|
||||||
/// FOR INTERNAL USE: analog of the "execute-worker" command of the polkadot binary.
|
/// FOR INTERNAL USE: analog of the "execute-worker" command of the polkadot binary.
|
||||||
#[clap(name = "execute-worker", hide = true)]
|
#[command(name = "execute-worker", hide = true)]
|
||||||
PvfExecuteWorker(ValidationWorkerCommand),
|
PvfExecuteWorker(ValidationWorkerCommand),
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -84,5 +84,9 @@ pub enum Subcommand {
|
|||||||
#[derive(Debug, Parser)]
|
#[derive(Debug, Parser)]
|
||||||
pub struct ValidationWorkerCommand {
|
pub struct ValidationWorkerCommand {
|
||||||
/// The path to the validation host's socket.
|
/// The path to the validation host's socket.
|
||||||
|
#[arg(long)]
|
||||||
pub socket_path: String,
|
pub socket_path: String,
|
||||||
|
/// Calling node implementation version
|
||||||
|
#[arg(long)]
|
||||||
|
pub node_impl_version: String,
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -164,7 +164,10 @@ 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, None);
|
polkadot_node_core_pvf::prepare_worker_entrypoint(
|
||||||
|
&cmd.socket_path,
|
||||||
|
Some(&cmd.node_impl_version),
|
||||||
|
);
|
||||||
Ok(())
|
Ok(())
|
||||||
},
|
},
|
||||||
Some(crate::cli::Subcommand::PvfExecuteWorker(cmd)) => {
|
Some(crate::cli::Subcommand::PvfExecuteWorker(cmd)) => {
|
||||||
@@ -172,7 +175,10 @@ 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, None);
|
polkadot_node_core_pvf::execute_worker_entrypoint(
|
||||||
|
&cmd.socket_path,
|
||||||
|
Some(&cmd.node_impl_version),
|
||||||
|
);
|
||||||
Ok(())
|
Ok(())
|
||||||
},
|
},
|
||||||
None => {
|
None => {
|
||||||
|
|||||||
Reference in New Issue
Block a user