diff options
author | b00ris <b00ris@mail.ru> | 2018-09-05 16:57:45 +0800 |
---|---|---|
committer | Guillaume Ballet <gballet@gmail.com> | 2018-09-05 16:57:45 +0800 |
commit | 8711e2b6366109912057e8fb20add325a1051a4e (patch) | |
tree | 70ad2598573f8774ec77acf57598e24d7200634b /whisper/whisperv6/config.go | |
parent | cf33d8b83ce78d1e79cd8c43a21070b2050d5c7e (diff) | |
download | dexon-8711e2b6366109912057e8fb20add325a1051a4e.tar dexon-8711e2b6366109912057e8fb20add325a1051a4e.tar.gz dexon-8711e2b6366109912057e8fb20add325a1051a4e.tar.bz2 dexon-8711e2b6366109912057e8fb20add325a1051a4e.tar.lz dexon-8711e2b6366109912057e8fb20add325a1051a4e.tar.xz dexon-8711e2b6366109912057e8fb20add325a1051a4e.tar.zst dexon-8711e2b6366109912057e8fb20add325a1051a4e.zip |
whisper: add light mode check to handshake (#16725)
Diffstat (limited to 'whisper/whisperv6/config.go')
-rw-r--r-- | whisper/whisperv6/config.go | 10 |
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, } |