From 62b27fb6aaea2f072e29a290c1767135e28f035a Mon Sep 17 00:00:00 2001 From: Klimov Sergei Date: Fri, 31 Oct 2025 23:26:38 +0800 Subject: [PATCH] Ignore nil values in config loop Skip nil values in configuration processing --- beacon/params/config.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/beacon/params/config.go b/beacon/params/config.go index b01b739e07..7cbc5ca29e 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) {