@@ -30,7 +30,6 @@ import (
30
30
"github.com/ethereum/go-ethereum/cmd/utils"
31
31
"github.com/ethereum/go-ethereum/eth/ethconfig"
32
32
"github.com/ethereum/go-ethereum/internal/ethapi"
33
- "github.com/ethereum/go-ethereum/log"
34
33
"github.com/ethereum/go-ethereum/metrics"
35
34
"github.com/ethereum/go-ethereum/node"
36
35
"github.com/ethereum/go-ethereum/params"
43
42
Name : "dumpconfig" ,
44
43
Usage : "Show configuration values" ,
45
44
ArgsUsage : "" ,
46
- Flags : append (append ( nodeFlags , rpcFlags ... ), whisperFlags ... ),
45
+ Flags : append (nodeFlags , rpcFlags ... ),
47
46
Category : "MISCELLANEOUS COMMANDS" ,
48
47
Description : `The dumpconfig command shows configuration values.` ,
49
48
}
@@ -75,19 +74,8 @@ type ethstatsConfig struct {
75
74
URL string `toml:",omitempty"`
76
75
}
77
76
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
-
88
77
type gethConfig struct {
89
78
Eth ethconfig.Config
90
- Shh whisperDeprecatedConfig
91
79
Node node.Config
92
80
Ethstats ethstatsConfig
93
81
Metrics metrics.Config
@@ -132,11 +120,8 @@ func makeConfigNode(ctx *cli.Context) (*node.Node, gethConfig) {
132
120
if err := loadConfig (file , & cfg ); err != nil {
133
121
utils .Fatalf ("%v" , err )
134
122
}
135
-
136
- if cfg .Shh != (whisperDeprecatedConfig {}) {
137
- log .Warn ("Deprecated whisper config detected. Whisper has been moved to github.com/ethereum/whisper" )
138
- }
139
123
}
124
+
140
125
// Apply flags.
141
126
utils .SetNodeConfig (ctx , & cfg .Node )
142
127
stack , err := node .New (& cfg .Node )
@@ -147,22 +132,11 @@ func makeConfigNode(ctx *cli.Context) (*node.Node, gethConfig) {
147
132
if ctx .GlobalIsSet (utils .EthStatsURLFlag .Name ) {
148
133
cfg .Ethstats .URL = ctx .GlobalString (utils .EthStatsURLFlag .Name )
149
134
}
150
- utils .SetShhConfig (ctx , stack )
151
-
152
135
applyMetricConfig (ctx , & cfg )
153
136
154
137
return stack , cfg
155
138
}
156
139
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
-
166
140
// makeFullNode loads geth configuration and creates the Ethereum backend.
167
141
func makeFullNode (ctx * cli.Context ) (* node.Node , ethapi.Backend ) {
168
142
stack , cfg := makeConfigNode (ctx )
@@ -171,7 +145,6 @@ func makeFullNode(ctx *cli.Context) (*node.Node, ethapi.Backend) {
171
145
}
172
146
backend := utils .RegisterEthService (stack , & cfg .Eth )
173
147
174
- checkWhisper (ctx )
175
148
// Configure GraphQL if requested
176
149
if ctx .GlobalIsSet (utils .GraphQLEnabledFlag .Name ) {
177
150
utils .RegisterGraphQLService (stack , backend , cfg .Node )
0 commit comments