rename polkadot-collator to polkadot-parachain (#1241)

* rename polkadot-collator to polkadot-parachain

Not every node has to be a collator.

* Update README.md

Co-authored-by: Chevdor <chevdor@users.noreply.github.com>

* rename docker file

* Update .github/workflows/extrinsic-ordering-check-from-bin.yml

Co-authored-by: Chevdor <chevdor@users.noreply.github.com>

* Versioning scheme that tracks polkadot relay chain

but allows for patch releases by having a 0 at the end.
(`-patch1` patch naming schemes were discussed but they
were judged to cause downstream packagers pain.)

* update name

* update lock file

Co-authored-by: Chevdor <chevdor@users.noreply.github.com>
This commit is contained in:
Squirrel
2022-05-13 14:02:52 +01:00
committed by GitHub
parent d8ba3cf547
commit 1474308bbb
27 changed files with 179 additions and 178 deletions
+4 -3
View File
@@ -1,12 +1,13 @@
[package]
name = "polkadot-collator"
version = "5.4.0"
name = "polkadot-parachain"
version = "0.9.190"
authors = ["Parity Technologies <admin@parity.io>"]
build = "build.rs"
edition = "2021"
description = "Runs a polkadot parachain node which could be a collator."
[[bin]]
name = "polkadot-collator"
name = "polkadot-parachain"
path = "src/main.rs"
[dependencies]
+4 -4
View File
@@ -167,7 +167,7 @@ fn load_spec(id: &str) -> std::result::Result<Box<dyn sc_service::ChainSpec>, St
impl SubstrateCli for Cli {
fn impl_name() -> String {
"Polkadot collator".into()
"Polkadot parachain".into()
}
fn impl_version() -> String {
@@ -176,7 +176,7 @@ impl SubstrateCli for Cli {
fn description() -> String {
format!(
"Polkadot collator\n\nThe command-line arguments provided first will be \
"Polkadot parachain\n\nThe command-line arguments provided first will be \
passed to the parachain node, while the arguments provided after -- will be passed \
to the relaychain node.\n\n\
{} [parachain-args] -- [relaychain-args]",
@@ -221,7 +221,7 @@ impl SubstrateCli for Cli {
impl SubstrateCli for RelayChainCli {
fn impl_name() -> String {
"Polkadot collator".into()
"Polkadot parachain".into()
}
fn impl_version() -> String {
@@ -230,7 +230,7 @@ impl SubstrateCli for RelayChainCli {
fn description() -> String {
format!(
"Polkadot collator\n\nThe command-line arguments provided first will be \
"Polkadot parachain\n\nThe command-line arguments provided first will be \
passed to the parachain node, while the arguments provided after -- will be passed \
to the relay chain node.\n\n\
{} [parachain-args] -- [relay_chain-args]",
@@ -28,7 +28,7 @@ fn benchmark_storage_works() {
/// Invoke the `benchmark storage` sub-command for the given database and runtime.
fn benchmark_storage(db: &str, runtime: &str, base_path: &Path) -> ExitStatus {
Command::new(cargo_bin("polkadot-collator"))
Command::new(cargo_bin("polkadot-parachain"))
.args(&["benchmark", "storage", "--chain", runtime])
.arg("--db")
.arg(db)
@@ -33,7 +33,7 @@ fn polkadot_argument_parsing() {
fn run_command_and_kill(signal: Signal) {
let _ = fs::remove_dir_all("polkadot_argument_parsing");
let mut cmd = Command::new(cargo_bin("polkadot-collator"))
let mut cmd = Command::new(cargo_bin("polkadot-parachain"))
.args(&[
"-d",
"polkadot_argument_parsing",
@@ -33,7 +33,7 @@ fn interrupt_polkadot_mdns_issue_test() {
fn run_command_and_kill(signal: Signal) {
let _ = fs::remove_dir_all("interrupt_polkadot_mdns_issue_test");
let mut cmd = Command::new(cargo_bin("polkadot-collator"))
let mut cmd = Command::new(cargo_bin("polkadot-parachain"))
.args(&["-d", "interrupt_polkadot_mdns_issue_test", "--", "--dev"])
.spawn()
.unwrap();
@@ -31,7 +31,7 @@ fn purge_chain_works() {
let base_path = tempfile::tempdir().unwrap();
let mut cmd = Command::new(cargo_bin("polkadot-collator"))
let mut cmd = Command::new(cargo_bin("polkadot-parachain"))
.args(&["-d"])
.arg(base_path.path())
.args(&["--", "--dev"])
@@ -56,7 +56,7 @@ fn purge_chain_works() {
assert!(base_path.path().join("chains/local_testnet/db/full").exists());
assert!(base_path.path().join("polkadot/chains/dev/db/full").exists());
let status = Command::new(cargo_bin("polkadot-collator"))
let status = Command::new(cargo_bin("polkadot-parachain"))
.args(&["purge-chain", "-d"])
.arg(base_path.path())
.arg("-y")
@@ -33,7 +33,7 @@ fn running_the_node_works_and_can_be_interrupted() {
fn run_command_and_kill(signal: Signal) {
let _ = fs::remove_dir_all("interrupt_test");
let mut cmd = Command::new(cargo_bin("polkadot-collator"))
let mut cmd = Command::new(cargo_bin("polkadot-parachain"))
.args(&["-d", "interrupt_test", "--", "--dev"])
.spawn()
.unwrap();