Fix proposer-nodes cli flag name (#6125)

* Fix `proposer-nodes` cli flag name

* Add tests for `--proposer-nodes` cli arg.
This commit is contained in:
Jimmy Chen
2024-07-18 18:14:58 +10:00
committed by GitHub
parent 7afb230e56
commit 549035d140
2 changed files with 25 additions and 1 deletions

View File

@@ -187,7 +187,7 @@ impl Config {
.collect::<Result<_, _>>()
.map_err(|e| format!("Unable to parse beacon node URL: {:?}", e))?;
}
if let Some(proposer_nodes) = parse_optional::<String>(cli_args, "proposer_nodes")? {
if let Some(proposer_nodes) = parse_optional::<String>(cli_args, "proposer-nodes")? {
config.proposer_nodes = proposer_nodes
.split(',')
.map(SensitiveUrl::parse)