ChainSafe / ChainSafe/lodestar

Error Parsing Duplicated Single-Value Flag

Open
#8,178 1 comment 0 reactions 1 assignee Claimed by @Sandijigs View on GitHub
meta-bug
Dominant language
TypeScript
Stars
1.4k
Forks
483
Avg merge
1d 16h
Merged PRs (30d)
150

Description

### Describe the bug

If a single-value flag is occasionally duplicated, it's interpreted incorrectly.

### Expected behavior

The system should check for a duplicated single-value flag and throw an error before launching the node.

### Steps to reproduce

Run a node locally with this command:
```
./lodestar beacon --dataDir ~/data/fusaka-devnet-4/data --paramsFile ~/data/fusaka-devnet-4/config.yaml --genesisStateFile ~/data/fusaka-devnet-4/genesis.ssz --bootnodes=$(cat ~/data/fusaka-devnet-4/bootstrap_nodes.txt | awk '{print $0}' | paste -sd ",") --execution.engineMock --eth1 false --checkpointSyncUrl https://checkpoint-sync.fusaka-devnet-4.ethpandaops.io --checkpointSyncUrl https://checkpoint-sync.fusaka-devnet-4.ethpandaops.io
```

The error:
```
Fetching checkpoint state checkpointSyncUrl=https://checkpoint-sync.fusaka-devnet-4.ethpandaops.io,https
✖ Error: Unable to fetch weak subjectivity state: HttpClient.urls[0] is empty or undefined: undefined
```

### Additional context

_No response_

### Operating system

Linux

### Lodestar version or commit hash

v.1.33.0

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.