aboutsummaryrefslogtreecommitdiffstats
path: root/whisper
diff options
context:
space:
mode:
authorBas van Kervel <basvankervel@gmail.com>2017-06-21 16:49:14 +0800
committerBas van Kervel <basvankervel@gmail.com>2017-06-21 16:49:14 +0800
commit7a11e86442ab51401ad764777666133d82656264 (patch)
tree29154393cabb1e0f55e267b6bbf17bc6e28c37b4 /whisper
parent4a1d516d78f61937d850c6622bc26955b5103a23 (diff)
downloadgo-tangerine-7a11e86442ab51401ad764777666133d82656264.tar
go-tangerine-7a11e86442ab51401ad764777666133d82656264.tar.gz
go-tangerine-7a11e86442ab51401ad764777666133d82656264.tar.bz2
go-tangerine-7a11e86442ab51401ad764777666133d82656264.tar.lz
go-tangerine-7a11e86442ab51401ad764777666133d82656264.tar.xz
go-tangerine-7a11e86442ab51401ad764777666133d82656264.tar.zst
go-tangerine-7a11e86442ab51401ad764777666133d82656264.zip
whisper: move flags from whisper package to utils
Diffstat (limited to 'whisper')
-rw-r--r--whisper/whisperv5/config.go23
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 ()