Skip to content

Commit

Permalink
Merge "Clean up unused property "validatorEnabled""
Browse files Browse the repository at this point in the history
  • Loading branch information
hacera-jonathan authored and Gerrit Code Review committed Mar 29, 2017
2 parents 7b6eb40 + 73af303 commit 930ac84
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions core/peer/config.go
Expand Up @@ -54,7 +54,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
Expand Down Expand Up @@ -100,7 +99,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

Expand Down Expand Up @@ -163,14 +161,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 {
Expand Down

0 comments on commit 930ac84

Please sign in to comment.