aboutsummaryrefslogtreecommitdiffstats
path: root/whisper/whisperv6/config.go
diff options
context:
space:
mode:
Diffstat (limited to 'whisper/whisperv6/config.go')
-rw-r--r--whisper/whisperv6/config.go10
1 files changed, 6 insertions, 4 deletions
diff --git a/whisper/whisperv6/config.go b/whisper/whisperv6/config.go
index 61419de00..38eb9551c 100644
--- a/whisper/whisperv6/config.go
+++ b/whisper/whisperv6/config.go
@@ -18,12 +18,14 @@ package whisperv6
// Config represents the configuration state of a whisper node.
type Config struct {
- MaxMessageSize uint32 `toml:",omitempty"`
- MinimumAcceptedPOW float64 `toml:",omitempty"`
+ MaxMessageSize uint32 `toml:",omitempty"`
+ MinimumAcceptedPOW float64 `toml:",omitempty"`
+ RestrictConnectionBetweenLightClients bool `toml:",omitempty"`
}
// DefaultConfig represents (shocker!) the default configuration.
var DefaultConfig = Config{
- MaxMessageSize: DefaultMaxMessageSize,
- MinimumAcceptedPOW: DefaultMinimumPoW,
+ MaxMessageSize: DefaultMaxMessageSize,
+ MinimumAcceptedPOW: DefaultMinimumPoW,
+ RestrictConnectionBetweenLightClients: true,
}