Skip to content

Commit

Permalink
fix map nil
Browse files Browse the repository at this point in the history
  • Loading branch information
chengzhinei committed Jul 10, 2024
1 parent 71dd5cf commit d78755a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,6 @@ func GetChainMaxGasUsedPerBlock() int64 {
func GetOecConfig() *OecConfig {
once.Do(func() {
oecConfig = NewOecConfig()
oecConfig.consensusIPWhitelist = map[string]bool{}
})
return oecConfig
}
Expand Down Expand Up @@ -286,6 +285,7 @@ func defaultOecConfig() *OecConfig {
mempoolForceRecheckGap: 2000,
commitGapHeight: iavlconfig.DefaultCommitGapHeight,
iavlFSCacheSize: tmiavl.DefaultIavlFastStorageCacheSize,
consensusIPWhitelist: map[string]bool{},
}
}

Expand Down

0 comments on commit d78755a

Please sign in to comment.