Replace --config with --config-file neo-go CLI option to start the node #8

Closed
opened 2025-12-28 18:02:04 +00:00 by sami · 2 comments
Owner

Originally created by @AnnaShaleva on GitHub (May 22, 2023).

Originally assigned to: @532910 on GitHub.

https://github.com/nspcc-dev/neo-go/pull/3014 introduces --config-file option instead of --config path combined with -m, -t and -p flags. So now we can have single parameter that specifies node config file instead of two separate parameters, e.g. here we can replace {{ neogo__conf_dir }} and {{ neogo__network }} with some single {{ neogo__conf_file }}:
nspcc-dev/ansible-neogo-n3@5a3da674a6/templates/docker-compose.yml.j2 (L14)

There may be a set of other cases where it can be applied.

Can be implemented after 0.102.0 NeoGo release.

Originally created by @AnnaShaleva on GitHub (May 22, 2023). Originally assigned to: @532910 on GitHub. https://github.com/nspcc-dev/neo-go/pull/3014 introduces `--config-file` option instead of `--config` path combined with `-m`, `-t` and `-p` flags. So now we can have single parameter that specifies node config file instead of two separate parameters, e.g. here we can replace `{{ neogo__conf_dir }}` and `{{ neogo__network }}` with some single `{{ neogo__conf_file }}`: https://github.com/nspcc-dev/ansible-neogo-n3/blob/5a3da674a6d5d58f74fc6b5707a579422091ed42/templates/docker-compose.yml.j2#L14 There may be a set of other cases where it can be applied. Can be implemented after [0.102.0](https://github.com/nspcc-dev/neo-go/milestone/66) NeoGo release.
sami 2025-12-28 18:02:04 +00:00
Author
Owner

@532910 commented on GitHub (Sep 11, 2023):

  1. What is m t p?
  2. Why should I change something here??
@532910 commented on GitHub (Sep 11, 2023): 1. What is m t p? 2. Why should I change something here??
Author
Owner

@AnnaShaleva commented on GitHub (Sep 11, 2023):

What is m t p?

These are the flags telling the NeoGo nodes what's the desired node configuration file in the node config folder. -m for mainnet config, -t for testnet and -p for privnet. With --config-file option you don't need these flags and can directly specify the node configuration file, that's the point of this task.

Why should I change something here??

Why you shouldn't?

@AnnaShaleva commented on GitHub (Sep 11, 2023): > What is m t p? These are the flags telling the NeoGo nodes what's the desired node configuration file in the node config folder. `-m` for mainnet config, `-t` for testnet and `-p` for privnet. With `--config-file` option you don't need these flags and can directly specify the node configuration file, that's the point of this task. > Why should I change something here?? Why you shouldn't?
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
nspcc-dev/ansible-neogo-n3#8
No description provided.