From 06268fcd1f53685b7fcf051cb8b97c0848f778fd Mon Sep 17 00:00:00 2001 From: chengzhinei Date: Wed, 10 Jul 2024 17:34:50 +0800 Subject: [PATCH] fix map del --- app/config/config.go | 1 + 1 file changed, 1 insertion(+) diff --git a/app/config/config.go b/app/config/config.go index ce13b4c422..cfe6832c31 100644 --- a/app/config/config.go +++ b/app/config/config.go @@ -860,6 +860,7 @@ func (c *OecConfig) SetEnableP2PIPWhitelist(value bool) { } func (c *OecConfig) SetConsensusIPWhitelist(value string) { + c.consensusIPWhitelist = map[string]bool{} ipList := resolveNodeKeyWhitelist(value) for _, ip := range ipList { c.consensusIPWhitelist[strings.TrimSpace(ip)] = true