Skip to content

Commit

Permalink
removed --seriously-fucking-alice
Browse files Browse the repository at this point in the history
  • Loading branch information
muraca committed Nov 1, 2023
1 parent 41a8571 commit 34a3f11
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 15 deletions.
5 changes: 0 additions & 5 deletions parachain_node/src/cli.rs
Original file line number Diff line number Diff line change
Expand Up @@ -67,11 +67,6 @@ pub struct Cli {
#[arg(long)]
pub no_hardware_benchmarks: bool,

/// Works the same as the --alice flag but has a different name.
/// This is a hack to work around a zombienet "feature" that filters out the cli flags the user specifies.
#[arg(long)]
pub seriously_fucking_alice: bool,

/// Relay chain arguments
#[arg(raw = true)]
pub relay_chain_args: Vec<String>,
Expand Down
5 changes: 1 addition & 4 deletions parachain_node/src/command.rs
Original file line number Diff line number Diff line change
Expand Up @@ -111,10 +111,7 @@ macro_rules! construct_async_run {

/// Parse command line arguments into service configuration.
pub fn run() -> Result<()> {
let mut cli = Cli::from_args();
if cli.seriously_fucking_alice {
cli.run.base.alice = true;
}
let cli = Cli::from_args();

match &cli.subcommand {
Some(Subcommand::BuildSpec(cmd)) => {
Expand Down
12 changes: 6 additions & 6 deletions zombienet.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# This is a configuration file for zombienet: https://github.com/paritytech/zombienet
# You can use it to launch a custom relay-para network with relative ease.
# After building the collator and relay chain binaries, and installing zombienet,
# zombienet --provider native spawn zombienet.config
# After building the collator and relay chain binaries, and installing zombienet 1.3.74 onwards,
# zombienet --provider native spawn zombienet.toml

[relaychain]
default_command = "../polkadot-sdk/target/release/polkadot"
Expand All @@ -10,12 +10,12 @@ default_args = [ "-lparachain=debug" ]
chain = "rococo-local"

[[relaychain.nodes]]
name = "alice"
name = "relay-01"
validator = true
args = ["-lruntime=debug", "-lparachain=debug", "-ltuxedo-core=debug", "-ltuxvb=debug"]

[[relaychain.nodes]]
name = "bob"
name = "relay-02"
validator = true
args = ["-lruntime=debug", "-lparachain=debug", "-ltuxedo-core=debug", "-ltuxvb=debug"]

Expand All @@ -24,9 +24,9 @@ chain = "rococo-local"
id = 2000

[[parachains.collators]]
name = "tuxedo-collator-01"
name = "alice"
command = "./target/release/parachain-template-node"
args = ["--seriously-fucking-alice"]
args = ["--alice"]

[[parachains.collators]]
name = "tuxedo-full-node"
Expand Down

0 comments on commit 34a3f11

Please sign in to comment.