aboutsummaryrefslogtreecommitdiffstats
path: root/whisper/whisperv6/config.go
diff options
context:
space:
mode:
authorb00ris <b00ris@mail.ru>2018-09-05 16:57:45 +0800
committerGuillaume Ballet <gballet@gmail.com>2018-09-05 16:57:45 +0800
commit8711e2b6366109912057e8fb20add325a1051a4e (patch)
tree70ad2598573f8774ec77acf57598e24d7200634b /whisper/whisperv6/config.go
parentcf33d8b83ce78d1e79cd8c43a21070b2050d5c7e (diff)
downloadgo-tangerine-8711e2b6366109912057e8fb20add325a1051a4e.tar
go-tangerine-8711e2b6366109912057e8fb20add325a1051a4e.tar.gz
go-tangerine-8711e2b6366109912057e8fb20add325a1051a4e.tar.bz2
go-tangerine-8711e2b6366109912057e8fb20add325a1051a4e.tar.lz
go-tangerine-8711e2b6366109912057e8fb20add325a1051a4e.tar.xz
go-tangerine-8711e2b6366109912057e8fb20add325a1051a4e.tar.zst
go-tangerine-8711e2b6366109912057e8fb20add325a1051a4e.zip
whisper: add light mode check to handshake (#16725)
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,
}