Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix collator (undying/adder) cmd args #1245

Closed
pepoviola opened this issue Aug 15, 2023 · 5 comments · Fixed by #1247
Closed

Fix collator (undying/adder) cmd args #1245

pepoviola opened this issue Aug 15, 2023 · 5 comments · Fixed by #1247
Assignees
Labels
bug Something isn't working good first issue Good for newcomers

Comments

@pepoviola
Copy link
Collaborator

Followup from paritytech/polkadot#7617 (comment), we should not use --validator in those collators cmd.

@pepoviola
Copy link
Collaborator Author

pepoviola commented Aug 15, 2023

We should add this check

  // Do not use `--validator`  for Collators (undying/adder)
  if (validator && !args.includes("--validator") && zombieRole !== ZombieRole.Collator) args.push("--validator");

here

or add a similar check in the configGenerator to set validator = false for non-cumulus collators.

@pepoviola pepoviola self-assigned this Aug 15, 2023
@skunert
Copy link
Contributor

skunert commented Aug 15, 2023

I think maybe zombienet should move away from using --validator at all for collators. There is the --collator flag for cumulus-based nodes that indicates that the node should produce blocks.

The validator term is confusing here since it mostly means relay chain nodes.

The CLI in cumulus is set up to change any given --validator flag into --collator, so there it is impossible to even start the internal relay chain node in validator mode.

So maybe the solution is to use --collator for cumulus-based nodes and no default for non-cumulus based nodes. Maybe we should even move away from supplying these default args (except for the stuff zombienet needs to work of course), its kind of hard to reason about them.

@pepoviola
Copy link
Collaborator Author

Hi @skunert, thanks for your help and feedback. Yes, I agree that we should move away from using --validator in collators. I'm already working on the fix.

Maybe we should even move away from supplying these default args (except for the stuff zombienet needs to work of course), its kind of hard to reason about them.

Which default args you mean? We are currently working on the v2 and we want to change the way we handle defaults.

Again, thanks for your help 👍

@skunert
Copy link
Contributor

skunert commented Aug 15, 2023

I meant that validator = true is the default for zombienet.

@pepoviola
Copy link
Collaborator Author

I meant that validator = true is the default for zombienet.

Ah, we can iterate over that for the new version and try to achieve the best trade-off between explicit set and default value.
Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working good first issue Good for newcomers
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants