diff options
author | Bas van Kervel <basvankervel@gmail.com> | 2017-06-21 16:49:14 +0800 |
---|---|---|
committer | Bas van Kervel <basvankervel@gmail.com> | 2017-06-21 16:49:14 +0800 |
commit | 7a11e86442ab51401ad764777666133d82656264 (patch) | |
tree | 29154393cabb1e0f55e267b6bbf17bc6e28c37b4 /whisper | |
parent | 4a1d516d78f61937d850c6622bc26955b5103a23 (diff) | |
download | dexon-7a11e86442ab51401ad764777666133d82656264.tar dexon-7a11e86442ab51401ad764777666133d82656264.tar.gz dexon-7a11e86442ab51401ad764777666133d82656264.tar.bz2 dexon-7a11e86442ab51401ad764777666133d82656264.tar.lz dexon-7a11e86442ab51401ad764777666133d82656264.tar.xz dexon-7a11e86442ab51401ad764777666133d82656264.tar.zst dexon-7a11e86442ab51401ad764777666133d82656264.zip |
whisper: move flags from whisper package to utils
Diffstat (limited to 'whisper')
-rw-r--r-- | whisper/whisperv5/config.go | 23 |
1 files changed, 1 insertions, 22 deletions
diff --git a/whisper/whisperv5/config.go b/whisper/whisperv5/config.go index af59f1bdc..290bf8962 100644 --- a/whisper/whisperv5/config.go +++ b/whisper/whisperv5/config.go @@ -16,10 +16,6 @@ package whisperv5 -import ( - "gopkg.in/urfave/cli.v1" -) - type Config struct { MaxMessageSize uint32 `toml:",omitempty"` MinimumAcceptedPOW float64 `toml:",omitempty"` @@ -30,21 +26,4 @@ var DefaultConfig = Config{ MinimumAcceptedPOW: DefaultMinimumPoW, } -var ( - WhisperEnabledFlag = cli.BoolFlag{ - Name: "shh", - Usage: "Enable Whisper", - } - MaxMessageSizeFlag = cli.IntFlag{ - Name: "shh.maxmessagesize", - Usage: "Max message size accepted", - Value: int(DefaultMaxMessageSize), - } - MinPOWFlag = cli.Float64Flag{ - Name: "shh.pow", - Usage: "Minimum POW accepted", - Value: DefaultMinimumPoW, - } - - Flags = []cli.Flag{WhisperEnabledFlag, MaxMessageSizeFlag, MinPOWFlag} -) +var () |