aboutsummaryrefslogtreecommitdiffstats
path: root/cmd/geth/main.go
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 /cmd/geth/main.go
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 'cmd/geth/main.go')
-rw-r--r--cmd/geth/main.go9
1 files changed, 7 insertions, 2 deletions
diff --git a/cmd/geth/main.go b/cmd/geth/main.go
index c5f783a08..ea87a3224 100644
--- a/cmd/geth/main.go
+++ b/cmd/geth/main.go
@@ -35,7 +35,6 @@ import (
"github.com/ethereum/go-ethereum/log"
"github.com/ethereum/go-ethereum/metrics"
"github.com/ethereum/go-ethereum/node"
- whisper "github.com/ethereum/go-ethereum/whisper/whisperv5"
"gopkg.in/urfave/cli.v1"
)
@@ -125,6 +124,12 @@ var (
utils.IPCDisabledFlag,
utils.IPCPathFlag,
}
+
+ whisperFlags = []cli.Flag{
+ utils.WhisperEnabledFlag,
+ utils.WhisperMaxMessageSizeFlag,
+ utils.WhisperMinPOWFlag,
+ }
)
func init() {
@@ -161,7 +166,7 @@ func init() {
app.Flags = append(app.Flags, rpcFlags...)
app.Flags = append(app.Flags, consoleFlags...)
app.Flags = append(app.Flags, debug.Flags...)
- app.Flags = append(app.Flags, whisper.Flags...)
+ app.Flags = append(app.Flags, whisperFlags...)
app.Before = func(ctx *cli.Context) error {
runtime.GOMAXPROCS(runtime.NumCPU())