From 73af30396782bf026f6fd9a8871ec533649c0cd0 Mon Sep 17 00:00:00 2001 From: root Date: Thu, 9 Mar 2017 11:13:43 +0000 Subject: [PATCH] Clean up unused property "validatorEnabled" Since the peer.validator.enabled property has been removed from core.yaml, this should also be cleaned up. Right now the only place uses this is core/peer/config.go Change-Id: I52d11f8ddfb6fd5ab103d0876a1e0ab41f3d8af1 Signed-off-by: Hangyu Li --- core/peer/config.go | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/core/peer/config.go b/core/peer/config.go index f5f1ab2ddf2..863818c56e3 100644 --- a/core/peer/config.go +++ b/core/peer/config.go @@ -52,7 +52,6 @@ var peerEndpointError error var syncStateSnapshotChannelSize int var syncStateDeltasChannelSize int var syncBlocksChannelSize int -var validatorEnabled bool // Note: There is some kind of circular import issue that prevents us from // importing the "core" package into the "peer" package. The @@ -98,7 +97,6 @@ func CacheConfiguration() (err error) { syncStateSnapshotChannelSize = viper.GetInt("peer.sync.state.snapshot.channelSize") syncStateDeltasChannelSize = viper.GetInt("peer.sync.state.deltas.channelSize") syncBlocksChannelSize = viper.GetInt("peer.sync.blocks.channelSize") - validatorEnabled = viper.GetBool("peer.validator.enabled") securityEnabled = true @@ -161,14 +159,6 @@ func SyncBlocksChannelSize() int { return syncBlocksChannelSize } -// ValidatorEnabled returns the peer.validator.enabled property -func ValidatorEnabled() bool { - if !configurationCached { - cacheConfiguration() - } - return validatorEnabled -} - // SecurityEnabled returns the securityEnabled property from cached configuration func SecurityEnabled() bool { if !configurationCached {