Skip to content

Conversation

@klim0v
Copy link
Contributor

@klim0v klim0v commented Sep 14, 2025

Fixes a crash when loading the beacon chain config if new fields like BLOB_SCHEDULE: [] are present.
Previously, the config loader assumed all values were strings, causing errors such as:

Fatal: Could not load beacon chain config '/network-configs/config.yaml': failed to parse beacon chain config file: yaml: unmarshal errors:
line 242: cannot unmarshal !!seq into string

This PR updates the parsing logic to handle non-string values correctly and adds explicit validation for fork fields.

@klim0v klim0v changed the title neacon/config: fix LoadForks with non-string values beacon/config: fix LoadForks with non-string values Sep 14, 2025
@klim0v klim0v changed the title beacon/config: fix LoadForks with non-string values WIP: beacon/config: fix LoadForks with non-string values Sep 14, 2025
@klim0v klim0v marked this pull request as draft September 14, 2025 16:38
@klim0v klim0v changed the title WIP: beacon/config: fix LoadForks with non-string values beacon/config: fix LoadForks with non-string values Sep 14, 2025
@klim0v klim0v marked this pull request as ready for review September 14, 2025 16:49
@klim0v klim0v marked this pull request as draft September 14, 2025 17:34
@klim0v klim0v marked this pull request as ready for review September 14, 2025 17:42
Copy link
Contributor

@zsfelfoldi zsfelfoldi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@zsfelfoldi zsfelfoldi merged commit b9e2eb5 into ethereum:master Sep 18, 2025
4 of 6 checks passed
Sahil-4555 pushed a commit to Sahil-4555/go-ethereum that referenced this pull request Oct 12, 2025
Fixes a crash when loading the beacon chain config if new fields like
`BLOB_SCHEDULE: []` are present.
Previously, the config loader assumed all values were strings, causing
errors such as:

```
Fatal: Could not load beacon chain config '/network-configs/config.yaml': failed to parse beacon chain config file: yaml: unmarshal errors:
line 242: cannot unmarshal !!seq into string
```

This PR updates the parsing logic to handle non-string values correctly
and adds explicit validation for fork fields.
atkinsonholly pushed a commit to atkinsonholly/ephemery-geth that referenced this pull request Nov 24, 2025
Fixes a crash when loading the beacon chain config if new fields like
`BLOB_SCHEDULE: []` are present.
Previously, the config loader assumed all values were strings, causing
errors such as:

```
Fatal: Could not load beacon chain config '/network-configs/config.yaml': failed to parse beacon chain config file: yaml: unmarshal errors:
line 242: cannot unmarshal !!seq into string
```

This PR updates the parsing logic to handle non-string values correctly
and adds explicit validation for fork fields.
prestoalvarez pushed a commit to prestoalvarez/go-ethereum that referenced this pull request Nov 27, 2025
Fixes a crash when loading the beacon chain config if new fields like
`BLOB_SCHEDULE: []` are present.
Previously, the config loader assumed all values were strings, causing
errors such as:

```
Fatal: Could not load beacon chain config '/network-configs/config.yaml': failed to parse beacon chain config file: yaml: unmarshal errors:
line 242: cannot unmarshal !!seq into string
```

This PR updates the parsing logic to handle non-string values correctly
and adds explicit validation for fork fields.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants