From 71dd5cffa8eb16e95e04a73644e036a1c8ddef92 Mon Sep 17 00:00:00 2001 From: chengzhinei Date: Wed, 10 Jul 2024 16:42:12 +0800 Subject: [PATCH] fix map nil --- app/config/config.go | 1 + 1 file changed, 1 insertion(+) diff --git a/app/config/config.go b/app/config/config.go index 7df6f17869..4ce4e1f685 100644 --- a/app/config/config.go +++ b/app/config/config.go @@ -249,6 +249,7 @@ func GetChainMaxGasUsedPerBlock() int64 { func GetOecConfig() *OecConfig { once.Do(func() { oecConfig = NewOecConfig() + oecConfig.consensusIPWhitelist = map[string]bool{} }) return oecConfig }