From c55a12197e0495a0c5d3e5f049cdffd4e696aece Mon Sep 17 00:00:00 2001 From: Klimov Sergei Date: Wed, 26 Nov 2025 23:19:33 +0800 Subject: [PATCH] beacon/config: ignore nil values in config file (#33065) YAML supports leaving out the value, so we should handle this condition in our limited parser. --- beacon/params/config.go | 3 +++ beacon/params/config_test.go | 3 +++ 2 files changed, 6 insertions(+) diff --git a/beacon/params/config.go b/beacon/params/config.go index 5336220efd..437aa53788 100644 --- a/beacon/params/config.go +++ b/beacon/params/config.go @@ -103,6 +103,9 @@ func (c *ChainConfig) LoadForks(file []byte) error { epochs["GENESIS"] = 0 for key, value := range config { + if value == nil { + continue + } if strings.HasSuffix(key, "_FORK_VERSION") { name := key[:len(key)-len("_FORK_VERSION")] switch version := value.(type) { diff --git a/beacon/params/config_test.go b/beacon/params/config_test.go index 41e120469b..0b569b604c 100644 --- a/beacon/params/config_test.go +++ b/beacon/params/config_test.go @@ -15,6 +15,9 @@ ALTAIR_FORK_EPOCH: 1 EIP7928_FORK_VERSION: 0xb0000038 EIP7928_FORK_EPOCH: 18446744073709551615 +EIP7XXX_FORK_VERSION: +EIP7XXX_FORK_EPOCH: + BLOB_SCHEDULE: [] ` c := &ChainConfig{}