4646 Name : "dumpconfig" ,
4747 Usage : "Show configuration values" ,
4848 ArgsUsage : "" ,
49- Flags : append (append ( nodeFlags , rpcFlags ... ), whisperFlags ... ),
49+ Flags : append (nodeFlags , rpcFlags ... ),
5050 Category : "MISCELLANEOUS COMMANDS" ,
5151 Description : `The dumpconfig command shows configuration values.` ,
5252 }
@@ -88,19 +88,8 @@ type Bootnodes struct {
8888 Testnet []string
8989}
9090
91- // whisper has been deprecated, but clients out there might still have [Shh]
92- // in their config, which will crash. Cut them some slack by keeping the
93- // config, and displaying a message that those config switches are ineffectual.
94- // To be removed circa Q1 2021 -- @gballet.
95- type whisperDeprecatedConfig struct {
96- MaxMessageSize uint32 `toml:",omitempty"`
97- MinimumAcceptedPOW float64 `toml:",omitempty"`
98- RestrictConnectionBetweenLightClients bool `toml:",omitempty"`
99- }
100-
10191type XDCConfig struct {
10292 Eth ethconfig.Config
103- Shh whisperDeprecatedConfig
10493 Node node.Config
10594 Ethstats ethstatsConfig
10695 XDCX XDCx.Config
@@ -150,10 +139,6 @@ func makeConfigNode(ctx *cli.Context) (*node.Node, XDCConfig) {
150139 if err := loadConfig (file , & cfg ); err != nil {
151140 utils .Fatalf ("%v" , err )
152141 }
153-
154- if cfg .Shh != (whisperDeprecatedConfig {}) {
155- log .Warn ("Deprecated whisper config detected. Whisper has been moved to github.com/ethereum/whisper" )
156- }
157142 }
158143 if ctx .GlobalIsSet (utils .StakingEnabledFlag .Name ) {
159144 cfg .StakeEnable = ctx .GlobalBool (utils .StakingEnabledFlag .Name )
@@ -224,7 +209,6 @@ func makeConfigNode(ctx *cli.Context) (*node.Node, XDCConfig) {
224209 cfg .Ethstats .URL = ctx .GlobalString (utils .EthStatsURLFlag .Name )
225210 }
226211
227- utils .SetShhConfig (ctx , stack )
228212 utils .SetXDCXConfig (ctx , & cfg .XDCX , cfg .Node .DataDir )
229213 return stack , cfg
230214}
@@ -242,15 +226,6 @@ func applyValues(values []string, params *[]string) {
242226
243227}
244228
245- // checkWhisper returns true in case one of the whisper flags is set.
246- func checkWhisper (ctx * cli.Context ) {
247- for _ , flag := range whisperFlags {
248- if ctx .GlobalIsSet (flag .GetName ()) {
249- log .Warn ("deprecated whisper flag detected. Whisper has been moved to github.com/ethereum/whisper" )
250- }
251- }
252- }
253-
254229func makeFullNode (ctx * cli.Context ) (* node.Node , XDCConfig ) {
255230 stack , cfg := makeConfigNode (ctx )
256231
@@ -259,7 +234,6 @@ func makeFullNode(ctx *cli.Context) (*node.Node, XDCConfig) {
259234 utils .RegisterXDCXService (stack , & cfg .XDCX )
260235 utils .RegisterEthService (stack , & cfg .Eth )
261236
262- checkWhisper (ctx )
263237 // Add the Ethereum Stats daemon if requested.
264238 if cfg .Ethstats .URL != "" {
265239 utils .RegisterEthStatsService (stack , cfg .Ethstats .URL )
0 commit comments