From 7a11e86442ab51401ad764777666133d82656264 Mon Sep 17 00:00:00 2001 From: Bas van Kervel Date: Wed, 21 Jun 2017 10:49:14 +0200 Subject: whisper: move flags from whisper package to utils --- whisper/whisperv5/config.go | 23 +---------------------- 1 file changed, 1 insertion(+), 22 deletions(-) (limited to 'whisper') 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 () -- cgit