@@ -30,7 +30,6 @@ import (
3030 "github.com/ethereum/go-ethereum/cmd/utils"
3131 "github.com/ethereum/go-ethereum/eth/ethconfig"
3232 "github.com/ethereum/go-ethereum/internal/ethapi"
33- "github.com/ethereum/go-ethereum/log"
3433 "github.com/ethereum/go-ethereum/metrics"
3534 "github.com/ethereum/go-ethereum/node"
3635 "github.com/ethereum/go-ethereum/params"
4342 Name : "dumpconfig" ,
4443 Usage : "Show configuration values" ,
4544 ArgsUsage : "" ,
46- Flags : append (append ( nodeFlags , rpcFlags ... ), whisperFlags ... ),
45+ Flags : append (nodeFlags , rpcFlags ... ),
4746 Category : "MISCELLANEOUS COMMANDS" ,
4847 Description : `The dumpconfig command shows configuration values.` ,
4948 }
@@ -75,19 +74,8 @@ type ethstatsConfig struct {
7574 URL string `toml:",omitempty"`
7675}
7776
78- // whisper has been deprecated, but clients out there might still have [Shh]
79- // in their config, which will crash. Cut them some slack by keeping the
80- // config, and displaying a message that those config switches are ineffectual.
81- // To be removed circa Q1 2021 -- @gballet.
82- type whisperDeprecatedConfig struct {
83- MaxMessageSize uint32 `toml:",omitempty"`
84- MinimumAcceptedPOW float64 `toml:",omitempty"`
85- RestrictConnectionBetweenLightClients bool `toml:",omitempty"`
86- }
87-
8877type gethConfig struct {
8978 Eth ethconfig.Config
90- Shh whisperDeprecatedConfig
9179 Node node.Config
9280 Ethstats ethstatsConfig
9381 Metrics metrics.Config
@@ -132,11 +120,8 @@ func makeConfigNode(ctx *cli.Context) (*node.Node, gethConfig) {
132120 if err := loadConfig (file , & cfg ); err != nil {
133121 utils .Fatalf ("%v" , err )
134122 }
135-
136- if cfg .Shh != (whisperDeprecatedConfig {}) {
137- log .Warn ("Deprecated whisper config detected. Whisper has been moved to github.com/ethereum/whisper" )
138- }
139123 }
124+
140125 // Apply flags.
141126 utils .SetNodeConfig (ctx , & cfg .Node )
142127 stack , err := node .New (& cfg .Node )
@@ -147,22 +132,11 @@ func makeConfigNode(ctx *cli.Context) (*node.Node, gethConfig) {
147132 if ctx .GlobalIsSet (utils .EthStatsURLFlag .Name ) {
148133 cfg .Ethstats .URL = ctx .GlobalString (utils .EthStatsURLFlag .Name )
149134 }
150- utils .SetShhConfig (ctx , stack )
151-
152135 applyMetricConfig (ctx , & cfg )
153136
154137 return stack , cfg
155138}
156139
157- // enableWhisper returns true in case one of the whisper flags is set.
158- func checkWhisper (ctx * cli.Context ) {
159- for _ , flag := range whisperFlags {
160- if ctx .GlobalIsSet (flag .GetName ()) {
161- log .Warn ("deprecated whisper flag detected. Whisper has been moved to github.com/ethereum/whisper" )
162- }
163- }
164- }
165-
166140// makeFullNode loads geth configuration and creates the Ethereum backend.
167141func makeFullNode (ctx * cli.Context ) (* node.Node , ethapi.Backend ) {
168142 stack , cfg := makeConfigNode (ctx )
@@ -171,7 +145,6 @@ func makeFullNode(ctx *cli.Context) (*node.Node, ethapi.Backend) {
171145 }
172146 backend := utils .RegisterEthService (stack , & cfg .Eth )
173147
174- checkWhisper (ctx )
175148 // Configure GraphQL if requested
176149 if ctx .GlobalIsSet (utils .GraphQLEnabledFlag .Name ) {
177150 utils .RegisterGraphQLService (stack , backend , cfg .Node )
0 commit comments